I have a situation where one step in the JCL checks to see if there is any data in a file (using IDCAMS) and it will set the condition code to a value of 1. Later on in the job another file is being processed and this file, and its processing, has nothing to do with the earlier condition code.
I would like for the condition code to go back to a value of zero so that the subsequent steps use the new condition code, not the earlier one.
Somewhat as a side note, the job also has a PROC which does its own condition code checking (for a zero). I'd like to override the PROC with altering what code to check. Can you override the condition code?
COND CODE - Can it be reset to zero (0)
Moderators: Frank Yaeger, DikDude, Moderator Group
COND CODE - Can it be reset to zero (0)
David Earhart
-
- Active Member
- Posts: 732
- Joined: Thu May 24, 2012 4:07 am
There is no real problem with the second file. Similar to the first, there is an IDCAMS to check and see if there is any data and subsequent steps use that information to know whether or not there is anything to process.
Part of that process is the PROC. Because it has its own condition code checking (for a zero) it gets messed up with the earlier condition code.
Part of that process is the PROC. Because it has its own condition code checking (for a zero) it gets messed up with the earlier condition code.
David Earhart
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
As William has indicated, you can't change the CC of a previous step. For that matter, cc of a step belongs to that step and can't be altered in any subsequent steps, whether it's IDCAMS or anything else.
This is confusing, are the subsequent step having the condition check only for IDCAMS step; I mean - if you don't need it - just remove the condition check from subsequent step, no?I would like for the condition code to go back to a value of zero so that the subsequent steps use the new condition code, not the earlier one.
Regards,
Anuj
Anuj
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
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