I just got on offline reply. To clarify, I mean for a program to make this
determination programmatically, presumably by an LE call or z/OS control
block chaining.

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of Charles Mills
Sent: Wednesday, November 25, 2015 8:57 AM
To: [email protected]
Subject: Straightforward way to determine hardware architecture level?

Is there a fairly straightforward way to determine the "architecture number"
of the hardware on which a program is actually running? By architecture
level I mean z13 = ARCH(11) and so forth, as supported by C/C++ and I think
now COBOL. By straightforward I mean I do not want to test various feature
bits in the CVT and try to infer the architecture level or try various
instructions and catch the S0C1s. The best I have come up with is to get the
CPUID, get the machine type from there, and use a lookup table, so I am
looking for anything better than that. (Adding two to the assembler
"ZS-level" would be a better way, if that were available somewhere.)

Thanks,

Charles 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email
to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to