I get it. There are different meanings of 'architecture level'. You need more granularity. Not knowing the ins and outs of the various control blocks suggested by others, I would take the KISS approach with a table of supported models and what action you would take for each. A substantial but not endless list. Inelegant, but easy(ish) to build and maintain. DISPLAY M=CPU gives detail on CPC family and model number in various formats. If a match is not found in your table, use the highest one you support and issue a warning message. You have to determine this at run time because a program could easily need to run on a machine higher or lower than one it's compiled on.
IEE174I 12.15.00 DISPLAY M 245 PROCESSOR STATUS ID CPU SERIAL 00 + ssssss2827 01 + ssssss2827 02 +I ssssss2827 03 - 04 -I CPC ND = 002827.H43.IBM.02.0000000ssssss CPC SI = 2827.704.IBM.02.0000000000ssssss Model: H43 CPC ID = 00 CPC NAME = cpc-name LP NAME = lpar-name LP ID = # CSS ID = 0 MIF ID = 1 + ONLINE - OFFLINE . DOES NOT EXIST W WLM-MANAGED N NOT AVAILABLE I INTEGRATED INFORMATION PROCESSOR (zIIP) CPC ND CENTRAL PROCESSING COMPLEX NODE DESCRIPTOR CPC SI SYSTEM INFORMATION FROM STSI INSTRUCTION CPC ID CENTRAL PROCESSING COMPLEX IDENTIFIER CPC NAME CENTRAL PROCESSING COMPLEX NAME LP NAME LOGICAL PARTITION NAME LP ID LOGICAL PARTITION IDENTIFIER CSS ID CHANNEL SUBSYSTEM IDENTIFIER MIF ID MULTIPLE IMAGE FACILITY IMAGE IDENTIFIER . . . J.O.Skip Robinson Southern California Edison Company Electric Dragon Team Paddler SHARE MVS Program Co-Manager 626-302-7535 Office 323-715-0595 Mobile jo.skip.robin...@sce.com -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Charles Mills Sent: Sunday, November 29, 2015 12:10 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: (External):Re: Straightforward way to determine hardware architecture level? I am not a LOADXX guru but &SYSALVL looks like waaaaaaay too little granularity. It seems to *stop* at ARCHLVL=2, "z Architecture." My OP was looking to distinguish *among* recent models -- say z990 to z13. The basic problem is the C compiler will optimize to give best performance on, say, a z196 -- but the resulting code S0C1's on a z10. My boss wants something more user-friendly than a S0C1. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of J O Skip Robinson Sent: Sunday, November 29, 2015 11:44 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Straightforward way to determine hardware architecture level? I confess to not having slogged through this thread, but from the beginning I've wondered why no one has suggested the static system symbol &SYSALVL. System symbols can be queried from pretty much any environment. They're set automatically at IPL. Maybe OP needs more detail... ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN