Error CAY6017E validating a procedure with symbols in in-stream (sysin) data
search cancel

Error CAY6017E validating a procedure with symbols in in-stream (sysin) data

book

Article ID: 218591

calendar_today

Updated On:

Products

JCLCheck Workload Automation

Issue/Introduction

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   

Environment

Release : 12.0

Component : CA JCLCheck workload Automation

Cause

// EXPORT SYMLIST statement is needed because in-stream data contains JCL symbols.  

In this case, statement // EXPORT SYMLIST=* is coded in the execution job.

Resolution

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.