How to execute first n number of steps in a jcl

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
Yuvaraj

How to execute first n number of steps in a jcl

Post by Yuvaraj » Sat Jun 03, 2006 4:07 pm

For example if have a JCL with 15 setps, I want to execute only the first 10 steps. How it is possible?

User avatar
arrbee
Active Member
Posts: 144
Joined: Fri Feb 24, 2006 11:33 am

Post by arrbee » Wed Jun 07, 2006 7:15 am

Put a null statement (//) after the 10th step........:-)

HTH.
Arr Bee
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)

User avatar
rangab
Active Member
Posts: 56
Joined: Fri Mar 17, 2006 3:21 pm

Post by rangab » Wed Jun 07, 2006 7:28 am

Do you have those steps in a PROC or in the JOB itself? If it is the job itself then the solution by arbee is just right.
========
Ranga...:-0)
========
Learn Which You Don't Know - Teach Others Which They Don't Know.

User avatar
arrbee
Active Member
Posts: 144
Joined: Fri Feb 24, 2006 11:33 am

A JCL with 30 steps.

Post by arrbee » Sun Jun 11, 2006 11:40 am

Guys, A JCL is having 30 steps. I want to execute only the 3rd step. One way of doing it is to put a RESTART=STEP03 in the job card and put a null statement after the 3rd step.

Does anybody know multiple ways of doing the same? Pls share the details.

TIA.
Arr Bee
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)

Cruise

another way of executing nth step in JCL

Post by Cruise » Wed Jun 14, 2006 11:13 am

Hi,
you can execute the nth step by COND parameter. give COND=(O,LE) in the job card and give the COND=(0,GT) in the nth step which you want to execute.


Regards,
Cruise.

User avatar
arrbee
Active Member
Posts: 144
Joined: Fri Feb 24, 2006 11:33 am

Post by arrbee » Thu Jun 15, 2006 10:39 am

I will check it and come back..........

Thanks.
Arr Bee
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)

Suresh_S
Member
Posts: 1
Joined: Thu Jun 22, 2006 1:44 pm
Location: Chennai

Doubt on Cruise explanation

Post by Suresh_S » Thu Jun 22, 2006 4:01 pm

Hi Cruise,

You said COND=(O,LE) in the job card and to give the COND=(0,GT) in the nth step will execute only the N'th step.

I guess, the COND mentioned on the JOB will override the COND mentioned on STEP i.e., first the JOB COND is checked, if not satisfied, then STEP COND is checked. If not satisfied, then execute the STEP.

Cruise could you please provide some more explanation on your solution.

-Suresh.

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