Indicates the specific type of operating system.
When operating in mixed operating system environments it is desirable to structure NCL procedures in such a way that they are operating system independent. The &ZOPS system variable allows a procedure to test the specific type of operating system and modify processing accordingly.
The &ZOPS variable returns one of the following values:
The operating system is MSP.
The operating system is MSP/EX.
The operating system is VM/ESA.
The operating system is VM/GCS.
The operating system is VOS3.
The operating system is z/OS.
Example: &ZOPS
& IF &ZOPS EQ VOS3 &THEN +
&WRITE DATA=ABENDCMD COMMAND NOT AVAILABLE
Notes:
The system rejects commands that are not valid in certain operating systems. Use of &ZOPS allows an NCL procedure to tailor the operator interface so that certain options, perhaps on full-screen panels, do not appear when running in some environments.
&ZOPS returns the specific operating system type. If a generic test is adequate (for example, if you want to know whether you are operating under an MVS system of some sort), then using &ZGOPS might be simpler.
If you need to know the specific version of the operating system, then you need to use &ZOPSVERS as well as &ZOPS.
| Copyright © 2009 CA. All rights reserved. |
|