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

How to execute only 4th step in a job out of 5 steps?


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

New User


Joined: 28 Aug 2006
Posts: 1

PostPosted: Mon Aug 13, 2007 12:01 pm
Reply with quote

Hi,

Can anyone tell me how to run 4th step only out of 5 steps in a job?


From
Amit
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Mon Aug 13, 2007 12:18 pm
Reply with quote

Please search the forum .There are many links available for this.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Mon Aug 13, 2007 12:47 pm
Reply with quote

You can go for IEBEDIT . Search this forum for the keyword "IEBEDIT" and that would help .
Back to top
View user's profile Send private message
balakrishna reddy

Active User


Joined: 13 Jul 2007
Posts: 128
Location: Guntur

PostPosted: Mon Aug 13, 2007 12:57 pm
Reply with quote

Hi Amit,

if you want to execute only the 4th step of your jcl,then put restart parameter in your job like restart=step4 as shown below.


Code:

//job1 job 039193,'bala krishna',restart=step4
//step1  pgm=prog
......
......
//step2 
.....
....
//step3
.......
......
//step4 pgm=XXXX
.....
.....
//cond1  if (rc < 0) then
//step5
........
.......
//cond2 endif
//
Back to top
View user's profile Send private message
shankar.v

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Mon Aug 13, 2007 1:01 pm
Reply with quote

In job card, give RESTART=STEP5,COND=(0,LE)
Back to top
View user's profile Send private message
shankar.v

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Mon Aug 13, 2007 1:03 pm
Reply with quote

Quote:
Can anyone tell me how to run 4th step only out of 5 steps in a job?


sorry give RESTART=STEP4,COND=(0,LE)
Back to top
View user's profile Send private message
HARLEEN SINGH MANN
Warnings : 2

New User


Joined: 03 Aug 2007
Posts: 17
Location: Pune

PostPosted: Mon Aug 13, 2007 2:12 pm
Reply with quote

this wil cause step 4 to never execute. since false(rc<=0) ie. rc >0 wil only be checked if a previous step has occured.

am i right?????????????????
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Aug 13, 2007 2:45 pm
Reply with quote

HARLEEN SINGH MANN wrote:
this wil cause step 4 to never execute. since false(rc<=0) ie. rc >0 wil only be checked if a previous step has occured.

am i right?????????????????


If there is no previous step executed, then the CC code checking is ignored for the first step, i.e. STEP4, so it WILL run.
Back to top
View user's profile Send private message
MoganaKumaran

New User


Joined: 26 Jun 2007
Posts: 20
Location: Chennai

PostPosted: Mon Aug 13, 2007 5:16 pm
Reply with quote

I suggest it would be apt if u use IEBEDIT utility, Because we should be clear in writing JCL s as efficiently reducing the complexity.


Regards,
Mohan

L&T
Back to top
View user's profile Send private message
niks_jude
Warnings : 1

Active User


Joined: 01 Dec 2006
Posts: 144
Location: Mumbai

PostPosted: Wed Aug 15, 2007 8:27 pm
Reply with quote

Restarting from step 4 will also allow step 5 to get executed. Isn't this right?
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: Wed Aug 15, 2007 9:16 pm
Reply with quote

Hello,

If this restart is used
Code:
//     RESTART=STEP4,COND=(0,LE)

STEP4 will run and STEP5 will be skipped.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Wed Aug 15, 2007 11:30 pm
Reply with quote

Moderators,

Isnt this restart topic - posted in below FAQ?
If so why this is being discussed again

ibmmainframes.com/viewtopic.php?t=20820
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 Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts Fetch data from programs execute (dat... DB2 3
No new posts CA7 deleting files in steps after job... CA Products 4
Search our Forums:

Back to Top