I had 100 steps in jcl i want to execute first 10 steps only?

Answers were Sorted based on User's Feedback



I had 100 steps in jcl i want to execute first 10 steps only?..

Answer / albert n

If the JCL is not submitted by TSO/ISPF where automatic
generation of a JOB card is normal, you simply add a card
to the deck that has only //. This signals to the JCL
conversion that the jobstream had ended.

e.g

//STEP1 EXEC PGM=....
//.... DD DISP=...,DSN=...
//STEP2 EXEC PGM=....
//.... DD DISP=...,DSN=...
//STEP3 EXEC PGM=....
//.... DD DISP=...,DSN=...
//STEP4 EXEC PGM=....
//.... DD DISP=...,DSN=...
//STEP5 EXEC PGM=....
//.... DD DISP=...,DSN=...
//STEP6 EXEC PGM=....
//.... DD DISP=...,DSN=...
//STEP7 EXEC PGM=....
//.... DD DISP=...,DSN=...
//STEP8 EXEC PGM=....
//.... DD DISP=...,DSN=...
//STEP9 EXEC PGM=....
//.... DD DISP=...,DSN=...
//STEP10 EXEC PGM=....
//.... DD DISP=...,DSN=...
// <- END of job signal to JCL conversion
//STEP11 EXEC PGM=.... From here down is ignored
//.... DD DISP=...,DSN=...
//STEP12 EXEC PGM=....
//.... DD DISP=...,DSN=...
//STEP13 EXEC PGM=....
//.... DD DISP=...,DSN=...

Is This Answer Correct ?    7 Yes 1 No

I had 100 steps in jcl i want to execute first 10 steps only?..

Answer / shivanadri naveen kumar

After 10th step you should give jcl null statement or else
code condition parameter in step11.

Is This Answer Correct ?    7 Yes 1 No

I had 100 steps in jcl i want to execute first 10 steps only?..

Answer / harsha

You can use IEBEDIT utility to perform this activity.

Is This Answer Correct ?    6 Yes 0 No

I had 100 steps in jcl i want to execute first 10 steps only?..

Answer / srinivas

After 10th step you should give jcl null statement or else
code condition parameter in step11.

Is This Answer Correct ?    2 Yes 0 No

I had 100 steps in jcl i want to execute first 10 steps only?..

Answer / kamaldeep

The answer #5 by Challa Srinivas is wrong, if we give //STEP11 EXEC=PGM2,COND=(0,LE,STEP10) then it will only not run Step11 but will run all the step after it.

Is This Answer Correct ?    1 Yes 0 No

I had 100 steps in jcl i want to execute first 10 steps only?..

Answer / challa srinivas

Just code at step 11 as below.

//STEP11 EXEC=PGM2,COND=(0,LE,STEP10).

Please note that Step 10 should execute successfully at any cost else again the job will start executing from step 11 till end.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More JCL Interview Questions

How can we increment subscript and index?

1 Answers   CTS, IBM,


can u explain gdg with example wht happens if we give limit,empty,noempty,scartch and no scartch

1 Answers   IBM,


I have 5 generations in my GDG. How do I code in the JCL to consider all the 5 versions of the GDG ?

5 Answers   Xansa,


What is the difference between IEBGENER, IEBCOPY and REPRO in IDCAMS utility?

8 Answers   Accenture, TCS,


common jcl abends??

2 Answers   ADP, Wipro,






How to DEBUG a JCL?

9 Answers   Satyam,


Write a JCL by using the below requirement: File1 =1, File2 =11 and output needs to come as File3 =111?

8 Answers   Saggezza,


In which table PLAN is registered in ?

3 Answers  


Could anyone please suggest me what is the maximum length of data that can be pass as input in //sysin dd * This was asked in interview. TIA

3 Answers   VC, Wipro,


what are the types of abends that occur on job failure? And explain the possible causes of these

0 Answers  


How to empty the records in jcl

1 Answers  


Is it possible to define dd statements as you want?

0 Answers  


Categories