Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Use of RESTART in presence of COND?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
sanjay_mf

New User


Joined: 30 May 2008
Posts: 10
Location: Bangalore

PostPosted: Fri Jun 27, 2008 9:41 am    Post subject: Use of RESTART in presence of COND?
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
References
PostPosted: Fri Jun 27, 2008 9:41 am    Post subject: Re: Use of RESTART in presence of COND? Reply with quote

Help-Me-Out

Active User


Joined: 09 Dec 2006
Posts: 54
Location: Pune

PostPosted: Fri Jun 27, 2008 9:57 am    Post subject: Reply to: Use of RESTART in presence of COND?
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

New User


Joined: 15 May 2006
Posts: 40

PostPosted: Fri Jun 27, 2008 10:32 am    Post subject:
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    Post subject: Reply to: Use of RESTART in presence of COND?
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

Active User


Joined: 09 Dec 2006
Posts: 54
Location: Pune

PostPosted: Fri Jun 27, 2008 10:48 am    Post subject: Re: Reply to: Use of RESTART in presence of COND?
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

Global Moderator


Joined: 23 Nov 2006
Posts: 7505
Location: 221 B Baker St

PostPosted: Fri Jun 27, 2008 11:24 am    Post subject:
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1