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

Execute from second step of my catalogued procedure


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

New User


Joined: 20 Jul 2007
Posts: 1
Location: Bangalore

PostPosted: Tue Aug 21, 2007 12:04 pm
Reply with quote

Hi,

I have a job with 2 steps. First step executes a pgm ABC.
Second step executes a procedure say XYZ.

My procedure XYZ has two steps : in first step it executes pgm DEF,
second step executes pgm KLM.

Now my JCL should execute the programs ABC and KLM only. The pgm DEF should be skipped.

Can anyone please let me know how to code my JCL.

I know that RESTART and COND parameters will serve the purpose, but not sure exactly how to use them.

Thanks in Advance,
Shalini
Back to top
View user's profile Send private message
shankar.v

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Tue Aug 21, 2007 1:52 pm
Reply with quote

Code:
//STEP1 EXEC PGM=ABC
//STEP2 EXEC XYZ,COND.STEP3=(0,LE)

Here STEP3 is the first step in proc XYZ which executes program DEF
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 Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts Fetch data from programs execute (dat... DB2 3
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
Search our Forums:

Back to Top