Peter - you're correct (as usual).
This is better:
/* rexx */
Return mvsvar('sysmvs')
This returns the level of z/os. For 2.4 you get SP7.2.4
Cheers
Lionel B. Dyck <><
Website: https://www.lbdsoftware.com
Github: https://github.com/lbdyck
"Worry more about your character than your reputation. Character is what you
are, reputation merely what others think you are." - - - John Wooden
-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of
Peter Relson
Sent: Sunday, June 27, 2021 8:03 AM
To: [email protected]
Subject: Re: z/OS SYSVAR looks weird
<snip>
RACFLEV = RACFVER || '.' || RACFREL || '.' || RACFMOD
</snip>
I'm afraid that that is not particularly helpful. That is just reformatting
the value already provided by &SYSLRACF.
As RCVTVRMN documents, that value does not represent the level of RACF as of
z/OS 2.2 -- the level of RACF is the level of the operating system.
The level of the operating system is
strip(ECVTPNAM) || ' ' || ECVTPVER || '.' || ECVTPREL || '.' || ECVTPMOD
and if you simply want something that can be used for "am I at least this
release" then ECVTPSEQ is the right field to use (01020400 for z/OS 2.4).
Perhaps an analog of what Lionel showed for RACFLEV but instead returning
OSLEV (or OSSEQ) would be more helpful.
Peter Relson
z/OS Core Technology Design
----------------------------------------------------------------------
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