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 pm) and the job class is equal to O, CA JCLCheck issues an error message if the test is true.
Note: 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 current hour */
curr_c_time = TIME(C) /* Get time in civil format */
If JOB.CLASS = 'O' & curr_hour < 17 then
Do
Call $CAJCL_ERROR,
'W','Class "O" is reserved for second shift usage, retry after 5PM,
it is only 'curr_c_time 'class set for first shift use'
JOB.CLASS = 'D'
End
Return
|
Copyright © 2013 CA.
All rights reserved.
|
|