Why the message 'LAST CC WAS 64' appears in a JCL with more than one // sentences?

Document ID : KB000027083
Last Modified Date : 14/02/2018
Show Technical Document Details


When using EDCHECK in a JCL with more than one // statement, it is possible to get the message LAST CC WAS 64'. However, the Message CAY6000 says 'NO STATEMENTS FLAGGED'.

For example:

Command ===> Scroll ===> CSR 
000012 //ALLOC    EXEC PGM=IEFBR14                                
000013 //TEST    DD DSN=DATA.SET.NAME,               
000014 //             DSNTYPE='PDS',                              
000015 //             DISP=(NEW,CATLG,DELETE),SPACE=(TRK,(1,1)),  
000016 //             DCB='RECFM=FB,BLKSIZE=6160,LRECL=80'        
000017 //                                                         
000018 //*                                                        
000019 //                                                         
Why the CC = 64 appears? 


CA JCLCheck generates the RC 64 indicating additional JCL was found in a member after a // (EOJ statement) was encountered, and prior to another JOB card statement.

In the example used to document this issue, the //* and additional // statements are flushed and JCLCheck processing resumes when a JOB card is found.

If it is not possible to remove the additional statements, use the FLUSHRC(00) CA JCLCheck option to prevent the RC 64.

FLUSHRC(nn) sets the return code for CA JCLCheck when JCL is flushed and FLUSHRC(64) is the default.

The FLUSHRC option is documented in CA JCLCheck Workload Automation Command Reference Guide, Chapter 3.