Sample JCL:
//PROC01 PROC VAR1='',
// VAR2=''
//STEP1 EXEC PGM=BPXBATCH
//STDERR DD SYSOUT=*
//STDOUT DD SYSOUT=*
//STDPARM DD DATA,SYMBOLS=(JCLONLY)
SH rm '/DB13/u/&VAR1./&VAR2..zip'
/*
// PEND
The following JCLCheck error messages are issued when validating the above procedure:
CAY6017E SYMBOLIC PARAMETER 'VAR1' NOT USED IN PROCEDURE
CAY6017E SYMBOLIC PARAMETER 'VAR2' NOT USED IN PROCEDURE
Release : 12.0
Component : CA JCLCheck workload Automation
// EXPORT SYMLIST statement is needed because in-stream data contains JCL symbols.
In this case, statement // EXPORT SYMLIST=* is coded in the execution job.
Since the job that executes the proc contains "// EXPORT SYMLIST=*", the job will run fine.
If JCLCheck validates the job (instead of the procedure), it will also complete successfully.
Message CAY6017E may be modified to inform users that the error may be ignored if a PROC is being validated, and JCL symbols are used in sysin data. USERMOD MZ2C023 from the JCLCheck CAZ2CJCL may be used to alter the JCLMSG table.