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

Use of RESTART in presence of COND?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sanjay_mf

New User


Joined: 30 May 2008
Posts: 10
Location: Bangalore

PostPosted: Fri Jun 27, 2008 9:41 am
Reply with quote

I have to restart a job from the 3rd step. The 3rd step uses a COND parameter which says it will execute based on the results of the 2nd step. Can I use the RESTART parameter in this case, like RESTART=step3, knowing that the execution of the 3rd step depends on the result of the 2nd step?
Back to top
View user's profile Send private message
Help-Me-Out

New User


Joined: 09 Dec 2006
Posts: 56
Location: Pune

PostPosted: Fri Jun 27, 2008 9:57 am
Reply with quote

yes, if it is failed in step 3. icon_lol.gif
Back to top
View user's profile Send private message
mohitsaini
Warnings : 1

New User


Joined: 15 May 2006
Posts: 92

PostPosted: Fri Jun 27, 2008 10:32 am
Reply with quote

Step 3 will execute.
Back to top
View user's profile Send private message
sanjay_mf

New User


Joined: 30 May 2008
Posts: 10
Location: Bangalore

PostPosted: Fri Jun 27, 2008 10:40 am
Reply with quote

Does it mean that, in this particular scenario, the COND parameter(of step3) wont come into effect at all?
Back to top
View user's profile Send private message
Help-Me-Out

New User


Joined: 09 Dec 2006
Posts: 56
Location: Pune

PostPosted: Fri Jun 27, 2008 10:48 am
Reply with quote

sanjay_mf wrote:
Does it mean that, in this particular scenario, the COND parameter(of step3) wont come into effect at all?


Ofcourse it will consider the condition. It will execute only if previous step is successful or according to your condition code check.

You can restart the step any time (provided failed in that step).

Hope this helps!! icon_smile.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jun 27, 2008 11:24 am
Reply with quote

Hello,

Quote:
Does it mean that, in this particular scenario, the COND parameter(of step3) wont come into effect at all?

Yes, there is no condition code to test so it will not come into affect. Step3 will execute.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Reference for COND parameter. JCL & VSAM 1
No new posts IEF142I and Cond. Code 12 All Other Mainframe Topics 3
No new posts Cond parameter and Rc code of a proce... JCL & VSAM 5
No new posts INCLUDE COND with WHEN=GROUP SYNCSORT 12
Search our Forums:

Back to Top