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 skip the steps in jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
yadagiri.p

New User


Joined: 01 Sep 2005
Posts: 10
Location: Bangalore

PostPosted: Tue Jun 06, 2006 11:08 am    Post subject: How to skip the steps in jcl
Reply with quote

Hi all

I have 5 step in jcl,but i want execute the steps 1, 3,5.
how can execute.can anybody tell process.

regards
yadagiri
Back to top
View user's profile Send private message

Husna

New User


Joined: 02 Jun 2006
Posts: 49

PostPosted: Tue Jun 06, 2006 11:35 am    Post subject:
Reply with quote

Hi Yadagiri,

Comment the 2nd and 4th steps...

//job1 job....
//step1 exec....
//*step2 exec ...
//step3 exec....
//*step4 exec ...
//step5exec....

I hope it will work fine?

Please correct, if I am wrong.
Back to top
View user's profile Send private message
sundaresanjs

New User


Joined: 29 May 2006
Posts: 18
Location: USA

PostPosted: Tue Jun 06, 2006 3:06 pm    Post subject:
Reply with quote

hi Husna,

you are correct, we can use like that in order to skip the steps, i have worked with it, it works fine

thanks,
regards,
Back to top
View user's profile Send private message
gsnvsr

New User


Joined: 06 Jul 2005
Posts: 40

PostPosted: Tue Jun 06, 2006 6:56 pm    Post subject: Re: How to skip the steps in jcl
Reply with quote

yadagiri.p wrote:
Hi all

I have 5 step in jcl,but i want execute the steps 1, 3,5.
how can execute.can anybody tell process.

regards
yadagiri


The question you are asking is unclear. Do you wanna skip execution of some steps -
a) based on a condition ?
b) unconditionally ?

If answer is (a) then code a COND statement in the job step.
If answer is (b) then either delete the unwanted steps from JCL or just comment the steps as others have indicated.
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Wed Jun 07, 2006 3:45 am    Post subject: Re: How to skip the steps in jcl
Reply with quote

Hello yadagiri,


You could do as suggested above, but this will prove to be cumbersome I think. You need to either comment or delete ALL lines in the jobstep you do not want to execute. If this is a job that you will want to run again with the steps restored, then you need to back out ALL of the commented/deleted cards.

I think you?ll find this to be easier.

If you are not executing a PROC


Code:

//JS00100  EXEC PGM=IEFBR14             
//JS00200  EXEC PGM=IEFBR14,COND=(0,LE) 
//JS00300  EXEC PGM=IEFBR14             
//JS00400  EXEC PGM=IEFBR14,COND=(0,LE) 
//JS00500  EXEC PGM=IEFBR14



or if you are executing a proc

Code:

//EXECODD  PROC                               
//PS00100  EXEC PGM=IEFBR14                   
//PS00200  EXEC PGM=IEFBR14                   
//PS00300  EXEC PGM=IEFBR14                   
//PS00400  EXEC PGM=IEFBR14                   
//PS00500  EXEC PGM=IEFBR14                   
//  PEND                                       
//JS00100  EXEC EXECODD,                       
//         COND.PS00200=(0,LE),               
//         COND.PS00400=(0,LE)


Dave
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 why i need hit enter after EXECIO * D... jackzhang75 CLIST & REXX 10 Fri May 20, 2016 9:16 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 How steps execute in Job in case of a... richiewalia JCL & VSAM 4 Tue Jan 12, 2016 12:34 pm
No new posts SKIP/DELETE records only from a speci... Bill Woodger SYNCSORT 6 Wed Feb 25, 2015 3:30 am
No new posts Count the number of JCL executable steps nartcr JCL & VSAM 5 Wed Nov 05, 2014 2:57 am


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