Hi,
I have a JCL which has 7 steps, Step 3 execute a proc (which checks the given file is empty or not). step4 is executed with COND=(4,EQ).....now i'm getting error "JCP0516E INVALID REFERBACK 'STEP3' DETECTED" in the step7 while testing the Step 3 RC
structure of program
//AAAAA JOB (00030000,1111,,,),'AAAAAAAA',
// NOTIFY=AAAAAA,MSGCLASS=X,CLASS=A
//PROC JCLLIB ORDER=(XXXX.XXXX.JCL)
:
:
//Step1 exec pgm=sort
:
:
//Step3 exec TEST,dsname=bbbb.bbbb.bbb
:
//STEP4 EXEC PGM=SORT,COND=(4,EQ)
:
:
//STEP7 EXEC PGM=SORT,COND=(4,EQ,STEP3)
:
:
Proc structure
//TEST PROC
//PS010 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//FILE12 DD DSN=&DSNAME,DISP=SHR
//SYSIN DD *
PRINT INFILE(FILE12) COUNT(001)
I tested the following options too but still getting same error
COND=(4,EQ,STEP3.TEST) and COND=(4,EQ,STEP3.PS010)
Can any one guide me
How to check the return code of PROC
Moderators: Frank Yaeger, DikDude, Moderator Group
Step03 is not executing a step but a procedure. Procedures do not have return codes but the steps within do. You need to adjust your condition to specify the step within the procedure. Look in the manual as to how to do that because it is not quite the same as referring to a step outside of the procedure.
Regards
Nic
Nic
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page