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: 7995
Location: Bellevue, IA

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: 10231
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 JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm


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