How to skip first step of a job? Can we use COND on the
first step?

Answers were Sorted based on User's Feedback



How to skip first step of a job? Can we use COND on the first step?..

Answer / abhijit18in2002

Check this JCL you can use COND=ONLY

//X5PAKR5J JOB (X5P,AKR,5,00000),'TEST CONDITION',
// MSGLEVEL=(1,1),CLASS=Z,MSGCLASS=Z,
// NOTIFY=&SYSUID
//STEP1 EXEC PGM=IEFBR14,COND=ONLY
//SYSPRINT DD SYSOUT=*
//SYSOUT DD *
//STEP2 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//SYSOUT DD *
//STEP3 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//SYSOUT DD *
//SYSIN DD DUMMY
/*

O/P
STEP1-STEP WAS NOT RUN BECAUSE OF COND = ONLY
STEP2-STEP WAS EXECUTED - COND CODE 0000
STEP3-STEP WAS EXECUTED - COND CODE 0000

Is This Answer Correct ?    34 Yes 6 No

How to skip first step of a job? Can we use COND on the first step?..

Answer / amrita

We can use RESTART in the Job card. For example if in the
Job, proc has been called from Step name STEP01 and the we
want to skip first step from proc viz PROCSTEP01 i.e. we
want our Job to start from Proc step 2 viz PROCSTEP02, use
following syntax in the Jobcard -
RESTART=(STEP01.PROCSTEP02).

Is This Answer Correct ?    6 Yes 13 No

How to skip first step of a job? Can we use COND on the first step?..

Answer / challa srinivas

Use COND=(0,LE) in step 1. It will bypass step1.

Is This Answer Correct ?    3 Yes 22 No

Post New Answer

More JCL Interview Questions

whats the diff bw the evaluate also and and?

0 Answers   CGI,


What parameter directs the output of the job log dataset?

0 Answers  


How to read records in reverse order in flat file?

1 Answers  


In My job I have 15 procs.and in each proc i have 3 steps. i want to execute 3 step in proc 10.is it possible? if possible how?

2 Answers   HP,


i have step1,step2,step3 from where can i start coding cond parameter ?

2 Answers   Verizon,






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

1 Answers  


i have 1000 records in input file and i want to sort it and the first 200 records to be placed in output file. how to do that??

14 Answers   L&T,


What is order of searching of the libraries in a JCL?

4 Answers  


Can comments be specified at the very beginning of a jobcard? Will the JCL execute?

3 Answers  


List the various advantages of using jcl language?

0 Answers  


How do you create a temporary dataset?

0 Answers  


Why include statement is used in a jcl?

0 Answers  


Categories