The special System variables in Table 252 can only be resolved after the job has ended. These variables contain a blank value if the job ends OK or if no step in the job was run.
Table 252 Special AutoEdit System Variables Resolved after Job End
Variable |
Description |
---|---|
%%JOBCC |
Job completion code that caused the job to end NOTOK. For jobs ended OK, this variable resolves to blanks. |
%%COMPSTAT |
Job completion code that caused the job to end NOTOK. For jobs ended OK, this variable resolves to blanks. BMC recommends that the %%JOBCC AutoEdit variable be used instead. |
%%MAXRC |
The highest return code in the job execution from among the steps that ended NOTOK because of high return codes. The abended step(s) and steps that ended OK are not considered for the resolution of this variable. For jobs ended OK, this variable resolves to blanks. |
%%$NODEID |
The value of the node name that appears in the Active Environment Zoom screen. This variable is only resolved for NJE jobs; for non-NJE jobs, it resolves to a null value. |
%%STEP |
Job program step and procedure step (if it is defined) that caused the job to end NOTOK. This is the Job step that generated the Job Completion Code (resolved to %%JOBCC, described above). For jobs ended OK, this variable resolves to blanks. Format: 8-character program step (including blanks if necessary), followed by the procedure step name (up to eight characters). |
%%$PGMSTEP |
Job program step (equal to the first part of the %%STEP variable). |
%%$PRCSTEP |
Procedure step (equal to the second part of the %%STEP variable). |
%%$HIGHRC |
The highest return code from among all the steps of the job (in the Cnnnn format). This value includes both the steps ended NOTOK and the steps ended OK. If any of the steps ended abnormally, the first ABEND Code (either in Sxxx or Uxxxx format) is saved as the highest return code. |
%%$HIGHST |
The name of the job step that generated the highest return code (%%$HIGHRC, described above). |
%%$HIGHPR |
The name of the job procedure step that generated the highest return code (%%$HIGHRC, described above). |
%%$HIGHMN |
For Smart tables only. The name of the job member that generated the highest return code from among all the jobs of the smart table. |
%%$JOBRC |
Contains the JOBRC value extracted from z/OS and JES (in Cnnnn, Sxxx, or Uxxxx format). If for any reason, JOBRC is not extracted, the variable resolves to blanks. For more information, see Job completion code: +JOBRC. |
Note: The effect of an ON PGMST...DO OK statement, or of the value of the MAXCCOK parameter may be that Control-M treats a non-zero return code of a step in a job as OK. In such a case, the non-zero return code of that step is ignored by Control-M in calculating values for the %%JOBCC and %%MAXRC AutoEdit System variables.
Parent Topic |