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

Want to execute only the 50th among 100 steps


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kalaignar_S
Warnings : 1

New User


Joined: 06 Jan 2006
Posts: 21

PostPosted: Mon Apr 03, 2006 1:48 pm
Reply with quote

Hi..

I have a JCL containing 100 Steps.. I want to execute only the 50th step. Please let me know how can i do that...

Thanks
kalai
Back to top
View user's profile Send private message
thanooz

New User


Joined: 28 Jun 2005
Posts: 99

PostPosted: Mon Apr 03, 2006 1:50 pm
Reply with quote

hi kalaignar_S,

you can give in jobcard restart=step50(stepname),

Thank's
thanooz.
Back to top
View user's profile Send private message
kalaignar_S
Warnings : 1

New User


Joined: 06 Jan 2006
Posts: 21

PostPosted: Mon Apr 03, 2006 1:54 pm
Reply with quote

Hi Thanooz,

Thanks for replying... in Jobcard if we give restart=step50 means, it will execute the steps from 50 onwards. but my requirement is i want to execute only the 50 th step.

Thanks
kalai
Back to top
View user's profile Send private message
thanooz

New User


Joined: 28 Jun 2005
Posts: 99

PostPosted: Mon Apr 03, 2006 2:04 pm
Reply with quote

hi kalaignar_S,

you can do this with IEBEDIT utility.

Thank's
thanooz.
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Mon Apr 03, 2006 3:18 pm
Reply with quote

Hi kalai,

The restart logic is right but on y dont u use the condition statement in the 51st step. COND(0,EQ) like that...

Let me know if any other exit exists...
Back to top
View user's profile Send private message
vikasc4

New User


Joined: 11 Dec 2005
Posts: 32

PostPosted: Mon Apr 03, 2006 3:47 pm
Reply with quote

hi kalaignar_S,

give the RESTART condition on job statement and NULL statement after the 50th step. This will execute only the 50th step. example

//JOBNAME JOB .................... RESTERT=STEP50
//...........
...
...
//STEP50 EXEC PGM=...
//...
//SYSIN DD *
..
..
//


Regards
Vikas
Back to top
View user's profile Send private message
bhgh
Warnings : 1

New User


Joined: 18 Mar 2006
Posts: 21
Location: Hyderabad

PostPosted: Mon Apr 03, 2006 4:19 pm
Reply with quote

hi Vikas,
Can u explain flow of the JCL.
Back to top
View user's profile Send private message
vikasc4

New User


Joined: 11 Dec 2005
Posts: 32

PostPosted: Mon Apr 03, 2006 4:38 pm
Reply with quote

Hi bhgh,

The restart statement in the JOB card will start the job from 50th step and the // (Null statement) after the 50th step, will terminate the job after executing the 50th step. Thus only the 50th step will be executed leaving all other 99 step.

Regards
Vikas
Back to top
View user's profile Send private message
bhgh
Warnings : 1

New User


Joined: 18 Mar 2006
Posts: 21
Location: Hyderabad

PostPosted: Tue Apr 04, 2006 9:34 am
Reply with quote

Hi Vikas,

thanks,my doubt clear.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Apr 05, 2006 6:12 am
Reply with quote

Let me restate the problem:

How do you execute only step050 in a 100 step job, by ONLY changing the Job Card.


Solution:

Change //job100 job .....
To //job100 job ....,cond=(0,le),restart=step050

That'll do it.
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 Fetch data from programs execute (dat... DB2 3
No new posts CA7 deleting files in steps after job... CA Products 4
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
No new posts Evaluate variable to execute a jcl step JCL & VSAM 3
Search our Forums:

Back to Top