Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

To Change the Return Code of the Step.

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> FAQ & Off Topics
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    Post subject: To Change the Return Code of the Step.
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Sat Feb 16, 2013 5:40 am    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Sat Feb 16, 2013 9:19 pm    Post subject: Reply to: To Change the Return Code of the Step.
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 ...

http://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.    IBMMAINFRAMES.com Support Forums -> FAQ & Off Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us