Modify this subroutine so that:
Note: Error_count is not incremented by 1 for this message because it is not a severity (E) or higher.
/********************************************************************/
/* Exec Card processing Subroutine */
/********************************************************************/
EXEC_PROCESSING:
pgm_prefix = SUBSTR(EXEC.PGM,1,2)
step_name = STRIP(EXEC.STEPNAME,T) /* Remove trailing blanks */
If EXEC.PERFORM > 0 then
Do
Call $CAJCL_ERROR,
'E','PERFORM parameter is not allowed, remove and rerun'
error_count = (error_count + 1)
End
If EXEC.ADDRSPC = 'REAL' & user_prefix ¢ 'SYS' then
Do
Call $CAJCL_ERROR,
'E','ADDRSPC=REAL is a restricted JCL parameter'
error_count = (error_count + 1)
End
If (JOB.USERID ¢ 'CASCHED') & (pgm_prefix = 'PS') then
Do
Call $CAJCL_ERROR,
'S','PRODUCTION PROGRAMS CAN ONLY BE RUN BY THE AUTOMATED SCHEDULER'
End
Return
|
Copyright © 2013 CA.
All rights reserved.
|
|