Use the JOB processing subroutine to check anything that is specifically related to only JOB statement processing. Only one JOB statement is active at any one time.
/********************************************************************/
/* Job Card Processing Subroutine */
/********************************************************************/
/* The value of all JOB. variables is maintained within a JOB. */
/* When the next JOB statement is encountered the values change. */
/********************************************************************/
A JOB_PROCESSING:
B SAY 'This line appears in SYSTSPRT DD in batch or on terminal in TSO'
C If JOB.CLASS = 'P' & JOB.USERID \= 'CASCHED' then
Do
Call $CAJCL_ERROR,
'E' 'This class is reserved for scheduled jobs';
End
D Return
Defines the name of this subroutine to the DO WHILE loop.
Illustrates the use of the REXX SAY command within the JOB processing subroutine. This message appears in the SYSTSPRT sysout data set in batch or on the terminal screen when running under TSO/E.
IF statement that sets up the checking criteria so that if CLASS=P and the USERID is not equal to CASCHED (possible name for site scheduler), CA JCLCheck issues an error message. The IF statement is also comprised of the DO and CALL statements, message text lines, and the END statement.
The CALL statement performs the $CAJCL_ERROR subroutine, which causes CA JCLCheck to generate this severity code and error message in the associated reports if it encounters this error within the submitted JCL. To see how CA JCLCheck displays this message, see Report 6 - Error Messages.
Note: You can only use the variables specified in the JOB processing subroutine variables list under the topic Variable List for CA JCLCheck in this chapter to set up the criteria for these IF statements or any user-defined variable that may be applicable.
Causes control to return to the main DO WHILE loop.
|
Copyright © 2014 CA.
All rights reserved.
|
|