View previous topic :: View next topic
|
Author |
Message |
mailmesoon.amit
New User
Joined: 28 Aug 2006 Posts: 1
|
|
|
|
Hi,
Can anyone tell me how to run 4th step only out of 5 steps in a job?
From
Amit |
|
Back to top |
|
|
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
Please search the forum .There are many links available for this. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
You can go for IEBEDIT . Search this forum for the keyword "IEBEDIT" and that would help . |
|
Back to top |
|
|
balakrishna reddy
Active User
Joined: 13 Jul 2007 Posts: 128 Location: Guntur
|
|
|
|
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 |
|
|
shankar.v
Active User
Joined: 25 Jun 2007 Posts: 196 Location: Bangalore
|
|
|
|
In job card, give RESTART=STEP5,COND=(0,LE) |
|
Back to top |
|
|
shankar.v
Active User
Joined: 25 Jun 2007 Posts: 196 Location: Bangalore
|
|
|
|
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 |
|
|
HARLEEN SINGH MANN Warnings : 2 New User
Joined: 03 Aug 2007 Posts: 17 Location: Pune
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
MoganaKumaran
New User
Joined: 26 Jun 2007 Posts: 20 Location: Chennai
|
|
|
|
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 |
|
|
niks_jude Warnings : 1 Active User
Joined: 01 Dec 2006 Posts: 144 Location: Mumbai
|
|
|
|
Restarting from step 4 will also allow step 5 to get executed. Isn't this right? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If this restart is used
Code: |
// RESTART=STEP4,COND=(0,LE) |
STEP4 will run and STEP5 will be skipped. |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
Back to top |
|
|
|