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
 

 

Want to execute only the 50th among 100 steps

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Want to execute only the 50th among 100 steps
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    Post subject:
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    Post subject:
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    Post subject:
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: 680
Location: NJ

PostPosted: Mon Apr 03, 2006 3:18 pm    Post subject: Restarting Steps
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    Post subject:
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: delhi

PostPosted: Mon Apr 03, 2006 4:19 pm    Post subject:
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    Post subject:
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: delhi

PostPosted: Tue Apr 04, 2006 9:34 am    Post subject:
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    Post subject:
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    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 Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
No new posts CEXEC not able to execute if no SLINE... boyti ko CLIST & REXX 2 Wed Apr 13, 2016 4:31 pm
This topic is locked: you cannot edit posts or make replies. Executing JCL specific steps at speci... Shruti Takkar JCL & VSAM 6 Mon Feb 22, 2016 12:39 pm
No new posts CALL MACRO EXECUTE FORM - Setting the... sudarshan.srivathsav PL/I & Assembler 7 Tue Feb 09, 2016 10:32 pm


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