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

How to skip the steps in jcl


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts CA7 deleting files in steps after job... CA Products 4
No new posts SKIP LOCKED DATA in UPDATE statement DB2 9
No new posts Identify the count from two diffrent ... DFSORT/ICETOOL 19
No new posts SMF logging in RDT server - Steps inv... PL/I & Assembler 1
No new posts Logic to skip Maximum time-stamp and ... DB2 2
Search our Forums:

Back to Top