Indicates the generic 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. Although your product region supports most functions, regardless of the operating system, certain facilities is restricted in some cases. The &ZGOPS system variable allows a procedure to test the generic (as opposed to the specific) type of operating system and restrict functions accordingly.
The &ZGOPS variable returns one of the following values:
The operating system is z/OS, MSP, or VOS3.
The operating system is z/VM.
Example: &ZGOPS
. . . &GOTO .&ZGOPS -* Branch to operating system dependent logic. . . .MVS . . . .VM . . .
Note: &ZGOPS simplifies coding when logic depends on the general type of operating system, as opposed to the specific operating system. For example, z/OS, MSP, and VOS3 are generically all MVS systems. When a function is to be coded that works on any MVS system, using &ZGOPS makes the coding easier than using multiple tests against &ZOPS, which indicates the specific operating system type.
| Copyright © 2009 CA. All rights reserved. |
|