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

Restart within an IF condition


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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: 25
Location: chennai

PostPosted: Wed Aug 13, 2008 2:40 pm
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
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

Superior Member


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

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

Hi,

Please search the forum, this has been discussed here -

www.ibmmainframes.com/viewtopic.php?t=32330&highlight=restart
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to give complex condition in JCL . CLIST & REXX 30
No new posts selectively copy based on condition DFSORT/ICETOOL 3
This topic is locked: you cannot edit posts or make replies. Control-m JOB executing even when the... Compuware & Other Tools 6
No new posts Dynamic condition checks COBOL Programming 5
No new posts Extract 2 more lines below line that ... DFSORT/ICETOOL 2
Search our Forums:

Back to Top