Previous Topic: Keywords for OPSJESX

Next Topic: Return  and Reason Codes

Output Variables

The output is stored in an output variable. The default output variable name is OPSJESX. You can change the default name by specifying a varStem value on the STEM keyword.

There are two kinds of output variables:

Section Variable Output Mappings

These sections correspond to the Job Information Elements for the Extended Status Function Call (SSI 80) as described in the IBM guide z/OS MVS Using the Subsystem Interface. To determine the name of the Job Information Element that corresponds to a keycode, add the prefix STAT to the keycode. For example, STATJQTR is the name of the Job Information Element that corresponds with keycode JQTR.

The Words returned for each section correlate to fields provided in the IBM mapping for each Job Information Element in IAZSSST macro. The fields are also described under Job Information Elements for the Extended Status Function Call in the IBM guide z/OS MVS Using the Subsystem Interface. In the descriptions below, the correlating IBM field name is given in parenthesis.

Output Variable Example

Note: Additional examples are provided in the topic OPSJESX Function Examples.

The following OPSJESX call returns job information for all class A jobs. For each job, the JQTR and J2TR sections are returned.

rtvl = OPSJESX("S","CLASS(A) SECTION(J2TR)”) 

If there are 3 class A jobs returned in the output, the output variables are:

OPSJESX.0 = 3

number of jobs returned

OPSJESX_JQTR.1

JQTR section for 1st job returned

WORDS 1 -27 contain job information as documented for JQTR above

OPSJESX_JQTR.2

JQTR section for 2nd job returned

WORDS 1 -27 contain job information as documented for JQTR above

OPSJESX_JQTR.3

JQTR section for 3rd job returned

WORDS 1 -27 contain job information as documented for JQTR above

OPSJESX_J2TR.1

J2TR section for 1st job returned

WORDS 1 –12 contain job information as documented for J2TR above

OPSJESX_J2TR.2

J2TR section for 2nd job returned

WORDS 1 –12 contain job information as documented for J2TR above

OPSJESX_J2TR.3

J2TR section for 3rd job returned

WORDS 1 –12 contain job information as documented for J2TR above

Note: If a section does not exist for a job, the section variable for that job will not be created. For example, if a J2TR section did not exist for job 2, the OPSJESX_J2TR.2 variable would not be created.