Portal | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
proc step return code to override in proc itself

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Aaryaa

New User


Joined: 20 Aug 2019
Posts: 1
Location: INDIA

PostPosted: Tue Aug 20, 2019 4:32 pm    Post subject: proc step return code to override in proc itself
Reply with quote

Hi, one of the step in my proc is completing with return code 4. This proc is called in one job. The job has last step as -

// IF RC > 1 THEN
//PROC99 EXEC abend routine
// ENDIF

And because of which my job is finally abending.

Any idea how to override the return code of that step in the proc itself. So that I do not need to modify the job at all.

I tried giving -
IF STEP010.RC=04 THEN
SET LASTCC=01
ENDIF

but that did not help. I tried MAXCC / LASTCC / STEP.RC but none of that worked.
Back to top
View user's profile Send private message

Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2467
Location: NY,USA

PostPosted: Tue Aug 20, 2019 5:22 pm    Post subject:
Reply with quote

And how are you planning to deploy proc in production ? Either one needs to be changed and the correct place is JCL. You don’t need that IF conditions at all and update the max rc in scheduling to 4 for this job and you are done.
Back to top
View user's profile Send private message
sergeyken

Active Member


Joined: 29 Apr 2008
Posts: 825
Location: Maryland

PostPosted: Tue Aug 20, 2019 5:34 pm    Post subject: Re: proc step return code to override in proc itself
Reply with quote

Aaryaa wrote:
I tried giving -
IF STEP010.RC=04 THEN
SET LASTCC=01
ENDIF

but that did not help. I tried MAXCC / LASTCC / STEP.RC but none of that worked.

With this level of understanding of JCL concepts you are welcome to the Beginners Forum!

The quoted code is (highly likely?) a mixture of keywords used in JCL, and completely different keywords used inside of system utility IDCAMS; both given with syntax errors. Is seems to be impossible at the Expert Forum to have no idea about the difference between them.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Tue Aug 20, 2019 6:34 pm    Post subject: Reply to: proc step return code to override in proc itself
Reply with quote

Quote:
Any idea how to override the return code of that step in the proc itself. So that I do not need to modify the job at all.
This cannot be done -- step condition codes are set by the program executing in the step, and once set they cannot be changed. Your BEST solution would be to change the job to
Code:
IF RC > 4 THEN
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Easytrieve EZABX007 with error code 0... Carol Schablow CA Products 7 Thu Sep 24, 2020 3:30 am
No new posts AN OVERRIDE MAY NOT TARGET OVERRIDING... HithaSri JCL & VSAM 1 Mon Sep 21, 2020 1:11 am
No new posts Add a step counter in a stack ? rodferrn CLIST & REXX 23 Fri Jul 17, 2020 7:00 am
This topic is locked: you cannot edit posts or make replies. VSAM I/O - Extended Addressability - ... amitsjcntl JCL & VSAM 12 Mon Jul 06, 2020 3:51 pm
No new posts Force a Return Code and print error m... Rick Ryan SYNCSORT 30 Thu Jun 25, 2020 1:18 am

Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us