Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

@STAJV - Output job variable information

&pagelevel(3)&pagelevel

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
output. All the specifications that are also permitted in the BS2000
command /SHOW-JV-ATTRIBUTES are allowed. It is therefore also possible
to make a partially qualified entry or use wildcards.
EDT does not perform any full syntax check.

If the specification does not designate any existing job variable then
message EDT4982 is output.

If the name of the job variable is fully qualified then the catalog ID (CATID)
is only included in the output if it is already present in the name.

If string is not specified then all the job variables under the current user
ID are output.

line

Line number as of which job variable information is to be written to the
current work file.

If a line with a number greater than the previous highest line number is
created then the current line number is modified.

If line is not specified then in the interactive mode's L mode, the result is
output to SYSOUT, in batch mode it is output to SYSLST and in F mode it is
written to work file 9. Work file 9 is deleted before being used. If a file is open
in work file 9 then the message EDT5189 is output and the statement is not
executed.

inc

Increment used to form the line numbers which follow line. If inc is not
specified then the increment implicitly specified by line is used (see
section “Implicit increment assignment”).

SHORT

Only the job variable names are output (default value).

LONG

Further catalog information is output in addition to the job variable names.

Column

Header

Meaning

1-7

SIZE

Length of the current value in bytes

8

M

Indicates whether the job variable is a
monitoring job variable (*/'BLANK')

9-62

JOBVARIABLE
NAME

Job variable name with USERID and possibly
CATID (see above)

64-71

CR-DATE

Creation date (YY-MM-DD)

73

S

SHARE attribute (Y/N)

75

A

ACCESS attribute (W/R)

77

R

READ-PASS attribute (Y/N)

79

W

WRITE-PASS attribute (Y/N)

The list is alphabetically sorted on the job variable names.

If the output is sent to SYSOUT or SYSLST then it is accompanied by a header
(see table). If the output is sent to work file 9 (in F mode, without the line
operand) then the header is output in the information line (can be displayed
using @PAR INFORMATION=ON). If the output is written to a work file due
to the line operand then no header is output.

ISO4

The creation date (CR-DATE) is output in the form YYYY-MM-DD. The
following fields (see table) are moved accordingly.

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.