Indicates the version of the operating system under which your product region is operating.
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 &ZOPSVERS system variable allows a procedure to test the version of the operating system and modify processing accordingly.
The &ZOPSVERS variable returns version values in the following formats for the operating systems listed:
Format nnnn (for example, 1010)
Format nnnn (for example, 1030)
Format vv.rr.mm (for example, 01.04.00 is z/OS V1R4)
Format L.svc (for example, 1.000)
Format L.svc (for example, 1.000)
Format aa-bb (for example, 10-20)
Examples: &ZOPSVERS
&IF &ZOPS EQ z/OS AND +
&ZOPSVERS EQ 01.04.00 &THEN +
&WRITE DATA=Running z/OS V1R4
Notes:
The system rejects commands that are not valid in certain versions of certain operating systems. Use of &ZOPSVERS 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.
&ZOPSVERS returns the specific version of an operating system type. If a test of the operating system type is adequate (for example, if you want to know whether you are operating on an MVS system of any version), then using &ZOPS might be simpler.
| Copyright © 2009 CA. All rights reserved. |
|