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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to execute only 4th step in a job out of 5 steps?
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: Chennai

PostPosted: Mon Aug 13, 2007 12:18 pm    Post subject: Re: How to execute only 4th step in a job out of 5 steps?
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: 1288
Location: Chennai, India

PostPosted: Mon Aug 13, 2007 12:47 pm    Post subject: Re: How to execute only 4th step in a job out of 5 steps?
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: 130
Location: Guntur

PostPosted: Mon Aug 13, 2007 12:57 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Aug 13, 2007 2:45 pm    Post subject:
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    Post subject:
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    Post subject:
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

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Aug 15, 2007 9:16 pm    Post subject:
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    Post subject:
Reply with quote

Moderators,

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

http://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    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 execute APP if they are not ADDRESS T... italo_pm CLIST & REXX 3 Fri Aug 12, 2016 2:15 am
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm


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