Note: All values for the statement variables (for example, JOB, EXEC, DD) change when they encounter a new value for that statement variable.
Change this subroutine so that:
Note: If this job name is fewer than three characters, the job prefix variable is filled with trailing spaces.
Note: The levels of severity codes are assigned as follows:
I = 0, W = 4, E = 8, S = 12.
This adheres to normal CA JCLCheck error severity.
/********************************************************************/
/* Job Card Processing Subroutine */
/********************************************************************/
JOB_PROCESSING:
job_prefix = SUBSTR(JOB.JOBNAME,1,3)
user_prefix = SUBSTR(JOB.USERID,1,3)
If job_prefix = 'PMK' & JOB.CLASS ¢ 'P' then
Do
Call $CAJCL_ERROR,
'W','Class "P" should be used for production jobs'
End
If job_prefix = 'SYS' & JOB.CLASS ¢ 'X' then
Do
Call $CAJCL_ERROR,
'W','Class "X" should be used for technical services jobs'
End
If JOB.ADDRSPC = 'REAL' & user_prefix ¢ 'SYS' then
Do
Call $CAJCL_ERROR,
'E','ADDRSPC=REAL is a restricted JCL parameter'
error_count = (error_count + 1)
End
Return
|
Copyright © 2013 CA.
All rights reserved.
|
|