I have a JCL which 20 steps. How do I execute 17 th step
alone (It should execute only 17ths tep.and it should not
execute 18,19,20 steps??

Answers were Sorted based on User's Feedback



I have a JCL which 20 steps. How do I execute 17 th step alone (It should execute only 17ths tep.a..

Answer / khan

In job card code restart=17 and cond parameter as follows

restart=17,cond=(00,LE)

Is This Answer Correct ?    48 Yes 7 No

I have a JCL which 20 steps. How do I execute 17 th step alone (It should execute only 17ths tep.a..

Answer / pradeep

There is a better way of doing it as given below:

//STEP001 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=XXX.GENERAL.STUDY(TEST001),DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP0017)
/*

Here, I have used the utility, IEBEDIT to execute only the
required step. You can also, given the syntax,

EDIT TYPE=INCLUDE,STEPNAME=(STEP0017,STEP0021,STEP0099) to
execute the reqd steps only.

Similarly, we can use TYPE=EXCLUDE to exclude the steps
from exec.

Is This Answer Correct ?    41 Yes 4 No

I have a JCL which 20 steps. How do I execute 17 th step alone (It should execute only 17ths tep.a..

Answer / atul

Hi,

Code as: RESTART=PROCNAME.STEP17,COND=(4095,NE)

This executes 17th step only and no other step. For
successful execotuin, you will recieve message 'STEP17
PROCNAME - ENDED BY CC 0000 - TIME=nn' in JESMSGLG in SPOOL.

Is This Answer Correct ?    18 Yes 3 No

I have a JCL which 20 steps. How do I execute 17 th step alone (It should execute only 17ths tep.a..

Answer / mohammad

code restart=17,cond=(00,le),
cond=(4095,ge) on job card.

This will execute only 17th step.

Is This Answer Correct ?    17 Yes 2 No

I have a JCL which 20 steps. How do I execute 17 th step alone (It should execute only 17ths tep.a..

Answer / vishwa_nathan

COde RESTART = STEP17 in job and code a condition in step
18 ie

STEP18 EXEC PGM=XXXXX,COND=(0,eq)

Is This Answer Correct ?    10 Yes 2 No

I have a JCL which 20 steps. How do I execute 17 th step alone (It should execute only 17ths tep.a..

Answer / anurag singh

At Job card level write Restart=step17(ddname) and put null
indicator (//) at the end of 17th step , so that while
executing the job will start form 17th step and after that
it will find the null indicator , so job execution will be
terminated.

Is This Answer Correct ?    16 Yes 9 No

I have a JCL which 20 steps. How do I execute 17 th step alone (It should execute only 17ths tep.a..

Answer / atul

In addition to answer 5, RESTART parameter can be coded as:
RESTART=PRCNAME.STEP17,COND=(4095,GT) and another one has
already been mentioned in answer # 3.

Is This Answer Correct ?    4 Yes 2 No

I have a JCL which 20 steps. How do I execute 17 th step alone (It should execute only 17ths tep.a..

Answer / david

1. In job card type restart=step17 and type // followed by spaces after the 17th Step.
2. Use IEBEDIT

JCL interview questions
https://youtu.be/VE6cTuFpsXc
https://youtu.be/bExB_Tjp9A4

COBOL interview questions:
https://youtu.be/_O6gPk6jjLE
https://youtu.be/pQumm7ueYik

Is This Answer Correct ?    0 Yes 1 No

I have a JCL which 20 steps. How do I execute 17 th step alone (It should execute only 17ths tep.a..

Answer / ss

In job card type restart=step17 and comment after 17th step

Is This Answer Correct ?    12 Yes 24 No

Post New Answer

More JCL Interview Questions

I have multiple jobs ( JCLs with several JOB cards ) in a member. What happens if I submit it?

16 Answers  


how many members can be created inside a single pds?

8 Answers  


What is jcl in mainframe?

0 Answers  


Explain about Cobol Subroutines

1 Answers  


A file has dta in S9(09) COMP format. How do I move the data into a character field X(10)?

2 Answers  






what is the control cards?

3 Answers  


A statement about PROCs is " In PROCs, Symbolic Parameters can be assigned on PROC and EXEC", BUT On which EXEC, (i) On the JCL's EXEC which is calling to PROC1. (Inside JCL, EXEC PROC1) (ii) or On the PROC's EXEC where it calls the PGM1. (Inside PROC, EXEC PGM=PGM1)

1 Answers   IBM,


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

0 Answers  


Can you delete the GDG base without deleting GDG generations ?

7 Answers   Cap Gemini,


What are three major types of JCL statements? What are their functions?

1 Answers  


WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375

0 Answers  


how you will define a temporary dataset in jcl?

1 Answers   IBM,


Categories