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
 

 

Override from JCL to dummy out proc step

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

New User


Joined: 16 Jul 2007
Posts: 8
Location: chennai

PostPosted: Fri Nov 16, 2007 8:58 pm    Post subject: Override from JCL to dummy out proc step
Reply with quote

I am writing a JCL where am using a proc in which some of the steps should not be executed.
Please provide a solution to override to the unwanted steps in proc from JCL.

Thanks
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Fri Nov 16, 2007 9:08 pm    Post subject: Reply to: Override from JCL to dummy out proc step
Reply with quote

See 5.2 Modifying Procedures in the z/OS V1R9.0 MVS JCL Reference.
Back to top
View user's profile Send private message
dominickim

New User


Joined: 28 Feb 2007
Posts: 65
Location: NS, CA

PostPosted: Fri Nov 16, 2007 10:08 pm    Post subject: I'm not so clear what you want, but check this out
Reply with quote

Code:
//S1       EXEC PGM=IDCAMS                       
//SYSPRINT DD SYSOUT=*                           
//SYSIN    DD *                                   
 SET MAXCC=8                                     
/*                                               
//S2       EXEC PGM=IEFBR14,COND=(0,NE)           
//S3       EXEC SKIPSTEP,RUN='(0,NE,S1)'         
  P1//SKIPSTEP  PROC RUN='(0,LE)'                 
  P1//STEP1     EXEC PGM=IEFBR14                 
  P1//STEP2     EXEC PGM=IEFBR14,COND=&RUN       
  P1--STEP2     EXEC PGM=IEFBR14,COND=(0,NE,S1)   
  P1//STEP3     EXEC PGM=IEFBR14                 
  P1//STEP4     EXEC PGM=IEFBR14,COND=&RUN       
  P1--STEP4     EXEC PGM=IEFBR14,COND=(0,NE,S1)   
  P1//STEP5     EXEC PGM=IEFBR14                 
  P1//          PEND                             
//                                               

Output
Code:
- STARTED - TIME=08.32.14           
  S1         IDCAMS    (0001)   0008
  S2         IEFBR14   (0002)   NXEQ
  STEP1      IEFBR14   (0003)   0000
  STEP2      IEFBR14   (0004)   NXEQ
  STEP3      IEFBR14   (0005)   0000
  STEP4      IEFBR14   (0006)   NXEQ
  STEP5      IEFBR14   (0007)   0000
- ENDED - TIME=08.32.14
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Fri Nov 16, 2007 10:50 pm    Post subject:
Reply with quote

dominickim's methos works well if you can change the proc, if not try the following overrides.
Code:
//**********************************************************
//SKIPSTEP  PROC                                           
//STEP1     EXEC PGM=IEFBR14                               
//STEP2     EXEC PGM=IEFBR14                               
//STEP3     EXEC PGM=IEFBR14                               
//STEP4     EXEC PGM=IEFBR14                               
//STEP5     EXEC PGM=IEFBR14                               
//          PEND                                           
//**********************************************************
//S1     EXEC PGM=IDCAMS                                   
//SYSPRINT DD SYSOUT=*                                     
//SYSIN    DD *                                             
 SET MAXCC=8                                               
/*                                                         
//S2     EXEC PGM=IEFBR14,COND=(0,NE)                       
//S3     EXEC SKIPSTEP,                                     
//            COND.STEP2=(0,NE,S1),                         
//            COND.STEP4=(0,NE,S1)                         
//                                                         
Code:
STEPNAME PROCSTEP    RC
S1                   08
S2                FLUSH
S3       STEP1       00
S3       STEP2    FLUSH
S3       STEP3       00
S3       STEP4    FLUSH
S3       STEP5       00
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Nov 16, 2007 11:50 pm    Post subject:
Reply with quote

Also, this topic has already been discussed to death. There is a SEARCH facility on this forum which would have shown you the numerous answers already given.
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 Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts DD DUMMY & CPU TIME Nileshkul Testing & Performance analysis 16 Mon Dec 19, 2016 11:35 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm


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