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
 

 

Execute from second step of my catalogued procedure

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

New User


Joined: 20 Jul 2007
Posts: 2
Location: Bangalore

PostPosted: Tue Aug 21, 2007 12:04 pm    Post subject: Execute from second step of my catalogued procedure
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    Post subject:
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    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 Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 4 Thu Oct 27, 2016 10:20 am
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 Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm


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