IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

To Change the Return Code of the Step.


IBM Mainframe Forums -> FAQ & Basics
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
Aron

New User


Joined: 15 Feb 2013
Posts: 4
Location: United States

PostPosted: Sat Feb 16, 2013 5:29 am
Reply with quote

Hi All,

We have a similar post in this forum. But I feel that it has ended abruptly. This is my first post, so I do not know if I can start a new topic or continue with the old one. So, please advise.

Now the requirement is to set the JOB Step's return code to a value like 2 or 4 while the step actually returns RC=99 (because of the COBOL pgm).

Can this be done using JCL ?

In the post I was referring to, "mmwife" told the below
"What you're really asking is: can I RESET the RC of a job step.

The ans is only in an IDCAMS step and only for THAT step. You can't reset a RC of another step from an IDCAMS step."


Is this true ? Is there no way that this can be done in JCL icon_question.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Feb 16, 2013 5:40 am
Reply with quote

That is a true statement. There is no way to change the return code of a step in JCL, especially once the step has completed.

You may use JCL IF conditions and COND conditionals to accomplish much, however.

But either change the COBOL program or accept that 99 is the return code that will be in the job.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Sat Feb 16, 2013 9:19 pm
Reply with quote

depending On Your zOS release ( 1.13 ) You might have a <partial>(*) implementation

(*) read Yourself the zOS 1.13 icl reference and guede manuals to see if what zOS 1.13 provides satisfies Your requirements.

unfortunately as asked the questions belongs here ...

ibmmainframes.com/viewtopic.php?t=20820&highlight=

topic moved and locked
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> FAQ & Basics

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top