Bypassing Catalog Proc Step in main JCL through if-then-else

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
kumarghosh
Member
Posts: 1
Joined: Mon Apr 08, 2013 9:44 pm

Bypassing Catalog Proc Step in main JCL through if-then-else

Post by kumarghosh » Mon Apr 08, 2013 9:54 pm

Hi Friends,

I am working in Mainframe environment. Can anyone help me regarding bypassing catalog procedure steps in main JCL through if-then-else-endif.

Say the procedure has 1 to 10 steps. I just want to bypass 3rd, 4th and 8th steps.

It will be better if you paste screen shots of detail coding of the JCL from any real time project.

Many thanks,
Kumar

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Mon Apr 08, 2013 11:10 pm

I do not believe that you can because IF/THEN/ELSE statements go BETWEEN step and overrides require step names. To do what you want you will need to edit the procedure - take a copy first, if necessary.
Regards
Nic

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Mon Apr 08, 2013 11:15 pm

Is this a one-time thing-to-do or will it be used for other selective runs?

If this is one-time, copy the proc, delete the unwanted steps (without introducing any errors), and run the one-time process.
Have a good one

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others