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
 

 

Restart within an IF condition

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

New User


Joined: 31 May 2007
Posts: 15
Location: Bangalore

PostPosted: Wed Aug 13, 2008 2:19 pm    Post subject: Restart within an IF condition
Reply with quote

Hi All,

I need to restart a STEP within an IF condition in a JCL

//STEP1
// IF condition THEN
//STEP2
//STEP3

The JOB abends at STEP3 and I wanna restart at the same.

How to achieve the same?
Back to top
View user's profile Send private message

Srinivasa Rao

New User


Joined: 21 Jun 2005
Posts: 75

PostPosted: Wed Aug 13, 2008 2:26 pm    Post subject:
Reply with quote

Comment IF condition and restart your job from step3.
Back to top
View user's profile Send private message
sudhakar84

New User


Joined: 20 Jun 2008
Posts: 21
Location: chennai

PostPosted: Wed Aug 13, 2008 2:40 pm    Post subject: Reply to: Restart within an IF condition
Reply with quote

I agree with srinivasa rao explaination.

We have to comment the if and End-If statments and give RESTART=STEP3 in the job card.
Back to top
View user's profile Send private message
acrajesh

New User


Joined: 31 May 2007
Posts: 15
Location: Bangalore

PostPosted: Wed Aug 13, 2008 2:45 pm    Post subject: Reply to: Restart within an IF condition
Reply with quote

//step1
//*if rc = 0 then
//step2
//*else
//*step3
//*endif

should it be the code if job abends at step2
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Aug 13, 2008 2:53 pm    Post subject:
Reply with quote

Hi,

Please search the forum, this has been discussed here -

http://www.ibmmainframes.com/viewtopic.php?t=32330&highlight=restart
http://www.ibmmainframes.com/viewtopic.php?t=26541&highlight=restart
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 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
No new posts File matching using specific condition mf_karthik DFSORT/ICETOOL 3 Fri Nov 20, 2015 11:04 pm


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