This chapter describes:
which types of job variables exist,
how job variables are named, stored and protected,
how they can be used for job/program monitoring,
how they can be used for conditional job control and
how they can be used as an input source during the entry of commands and statements.
The syntax and operands of the commands used are described in the “Commands” manual [1].
There are two types of job variables:
user job variables and
special job variables.
User job variables can be stored as permanent job variables or, if the system permits it, as temporary job variables. The user has sole responsibility for creating these job variables and providing them with values. Job variables used for monitoring jobs or programs are an exception to this rule: in this case the system enters values.
Special job variables (see "Special job variables ") contain certain operating system information to which the user has read-only access or which can only be transferred to a user job variable.
Command | Macro | Function |
CREATE-JV | CATJV | Generate new job variable |
COPY-JV | COPJV | Copy job variable |
DELETE-JV | ERAJV | Delete job variable |
MODIFY-JV | SETJV | Modify contents of job variable |
MODIFY-JV-ATTRIBUTES | CATJV | Modify catalog entry for job variable |
MODIFY-JV-CONDITIONALLY | CSWJV | Modify job variable contents conditionally |
MODIFY-MONJV | TIMJV | Set elements in the system section of a job monitoring JV |
REMOVE-JV-LINK | RELJV | Delete JV-LINK entry |
SET-JV-LINK | DCLJV | Define job variable link name |
SHOW-JV | GETJV | Output job variable contents |
SHOW-JV-ATTRIBUTES | STAJV | Output job variable attributes |
SHOW-JV-LINK | LNKJV | Output JV-LINK entry |
Table 1:
Commands/macros for job variable management
The MODIFY-JV and SHOW-JV commands are also available to the operator (see "Privileged access rights ").