The @STAJV statement outputs information about job variables or writes this information to a work file.
Operation | Operands | F mode, L mode |
@STAJV | [string] [ T O line [(inc)]] [ { [ SHORT ] | LONG [ISO 4 ] } ] |
string | String indicating the names of the job variables whose attributes are to be If the specification does not designate any existing job variable then If the name of the job variable is fully qualified then the catalog ID (CATID) If | |||||||||||||||||||||||||||
line | Line number as of which job variable information is to be written to the If a line with a number greater than the previous highest line number is If | |||||||||||||||||||||||||||
inc | Increment used to form the line numbers which follow | |||||||||||||||||||||||||||
SHORT | Only the job variable names are output (default value). | |||||||||||||||||||||||||||
LONG | Further catalog information is output in addition to the job variable names.
The list is alphabetically sorted on the job variable names. If the output is sent to | |||||||||||||||||||||||||||
ISO4 | The creation date |
Any attempt to query the status of system job variables ($SYSJV.) is rejected with the message EDT3087
.
If the Job Variable Support subsystem is not installed, the statement is rejected with the error message EDT5254
. For details on job variables, see the JV User Guide [9].
Example
The string present in line 2 is assigned to the job variable TODAY
.
The information line is activated and the line number display is hidden. @STAJV is used to write information about the job variable TODAY
to work file 9.
Information about the job variable is displayed.
Information about the job variable is displayed.