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
 

 

Condition codes

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

New User


Joined: 06 Aug 2009
Posts: 21
Location: chennai

PostPosted: Thu Oct 29, 2009 5:14 pm    Post subject: Condition codes
Reply with quote

Hi,

My job has ten steps. I want to execute the 5th step alone. I tried giving RESTART= STEP5 but starting from 5th all conesquent steps are running.

How can I run the 5th step alone by using condition codes?

Please help me.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4649
Location: Raleigh, NC, USA

PostPosted: Thu Oct 29, 2009 5:16 pm    Post subject: Reply to: Condition codes
Reply with quote

Personally, I'd save myself a lot of headaches and just use IEBEDIT.
Back to top
View user's profile Send private message
Ronald Burr

Active User


Joined: 22 Oct 2009
Posts: 293
Location: U.S.A.

PostPosted: Thu Oct 29, 2009 5:52 pm    Post subject:
Reply with quote

If your proc steps are, for example, STEP1 thru STEP10, and you only want to execute STEP5, then, as you stated, do a RESTART=STEP5, and, in addition, supply override statements to suppress execution of the remaining steps - for example
//PROCSTEP EXEC PROC=MYPROC,
// COND.STEP6=(32,GE),
// COND.STEP7=(32,GE),
// COND.STEP8=(32,GE),
// COND.STEP9=(32,GE),
// COND.STEP10=(32.,GE)

The above would suppress STEP6 thru STEP10 if the Return Code from ( restarted ) STEP5 was less than or equal to 32, or if STEP5 abended.
Back to top
View user's profile Send private message
PPRASAD2

New User


Joined: 06 Aug 2009
Posts: 21
Location: chennai

PostPosted: Thu Oct 29, 2009 6:00 pm    Post subject:
Reply with quote

Thank you KEVIN and RONALD
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Oct 29, 2009 6:37 pm    Post subject:
Reply with quote

Rather than specifically COND= all of the subsequent steps, especially if there are many of them, why not code COND=(0,LE) on the jobcard.

Once STEP5 has completed and issues a return code, all of the following steps will be bypassed.
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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Joinkeys with condition scdinesh DFSORT/ICETOOL 10 Tue Feb 14, 2017 12:20 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am
No new posts 2 vsam file compare and update a fiel... ABINAYATHULASI DFSORT/ICETOOL 6 Sun May 29, 2016 11:15 am


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