How to reset the return code of the same step ?

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
uthami
Member
Posts: 5
Joined: Thu Aug 06, 2009 9:35 pm

How to reset the return code of the same step ?

Post by uthami » Thu Aug 06, 2009 9:42 pm

My JCL uses IEBCOMPR to compare two datasets. The return code of this step is 12. I want to reset it to 4. Please help me to achieve this.

Note: This is the only step in my JCL.

MrSpock
Active Member
Posts: 273
Joined: Wed Jun 27, 2007 5:37 pm

Post by MrSpock » Fri Aug 07, 2009 4:44 am

I don't know why you'd think this is possible, but it's not. A step's return-code is what it is.

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

Post by Natarajan » Fri Aug 07, 2009 10:02 am

Refer following JCL tutorial..
http://www.geocities.com/srcsinc/drona/ ... ter10.html

Try using SET command. I am not sure whether it will work or not.
Just try.
Natarajan
Chennai

User avatar
arcvns
Member
Posts: 28
Joined: Sat May 30, 2009 10:19 pm
Location: Chennai, India

Post by arcvns » Fri Aug 07, 2009 12:46 pm

Hello,

As MrSpock said, you CANNOT change the return code of a step once it's issued.
Try using SET command. I am not sure whether it will work or not.
AFAIK, the SET command is used to initialize symbolic parameters in JCL.
Arun

Post Reply

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



Other References
Mainframe Tools and others