A system variable that contains the job class of the job that issued the WTO or WTOR.
This variable contains the job class that the issuing JOB had specified in the JOB statement in the JCL, if possible.
If JES issued the message, or JOB accounting control blocks are not accessible, this variable is null.
Example: &AOMJOBCL
.LOOP &AOMREAD SET &IF .&AOMJOBCL = .P &THEN &GOTO .PRODJOB
Note: Because the job class information is not available on all messages, the value should be saved in storage, such as a VARTABLE keyed by, for example, JOBID.
| Copyright © 2009 CA. All rights reserved. |
|