Note: All values for the statement variables (that is, JOB, EXEC, DD) change when they encounter a new value for that statement variable.
Change the JOB Statement subroutine to obtain the current time and date. Code an IF statement test so that if the time is less than 17:00 hours (5:00 p.m.) and the job class is equal to O, then CA JCLCheck issues an error message if the test is true.
The following are error message severity levels:
I = 0
W = 4
E = 8
S = 12
This adheres to normal CA JCLCheck error severity standards.
/********************************************************************/
/* Job Card Processing Subroutine */
/********************************************************************/
JOB_PROCESSING:
curr_hour = TIME(H) /* Get the current hour */
curr_c_time = TIME(C) /* Get time in Civil format */
If JOB.CLASS = 'O' & curr_hour < 17 then
Do
Call $CAJCL_ERROR,
'E','Class "O" is reserved for second shift usage, retry after 5 PM, it is
'only curr_c_time
End
Return
|
Copyright © 2013 CA.
All rights reserved.
|
|