Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us