Hi,
If I have a job with 5 steps, step01.. thru step05.
I want to run step05 only when any of the above steps (step01 thru step04) completes with RC > 8. As step05 is the step which will send out error-notification email.
What condition I must put at step05 ?
I tried to seek help from IBM team, but they suggested me to use IF-Else statements.
Is it possible to run with step level condition codes only?
Please help.
Many thanks!
COND codes, if any of above step fails then execute laststep
Moderators: Frank Yaeger, DikDude, Moderator Group
Why not IF? It is clearer and easy to code. You only need one IF and that is immediately before your STEP05.
Otherwise look in the JCL manual and do a few experiments to check your understanding. A few IEFBR14 or IDCAMS steps would do fine although a little program that will take a parameter to use as a return code would be better.
Otherwise look in the JCL manual and do a few experiments to check your understanding. A few IEFBR14 or IDCAMS steps would do fine although a little program that will take a parameter to use as a return code would be better.
Regards
Nic
Nic
Definitely. We used cond codes for Many years before IF/THEN was implemented in JCL.Is it possible to run with step level condition codes only?
One thing I Always have available is a step that will do nothing but generate a condition code that can be used for testing. Make sure the code is taken as input and NOT hardcoded.
Then run a few steps and learn what happens.
Someone will be here if you have questions/problems.
Have a good one
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