I have a JCL with 100 steps. I want run the Alternate steps
in the JCL ( Like 2 ,4,6,8 etc.. ). How can I acheive this
scenario? If It is by Cond Parameter can you provide the
Condition code for that?

Answers were Sorted based on User's Feedback



I have a JCL with 100 steps. I want run the Alternate steps in the JCL ( Like 2 ,4,6,8 etc.. ). Ho..

Answer / chandrakant

Hi ,

cond=even means if previous steps are terminated abnormally
that time also this step should be executed . it does not
mean to execute the steps in any specific order( even 2,4,6)

Is This Answer Correct ?    15 Yes 6 No

I have a JCL with 100 steps. I want run the Alternate steps in the JCL ( Like 2 ,4,6,8 etc.. ). Ho..

Answer / sathish kumar

In job card give restart=stepname2
from stepname3 to consecutive ODD steps give the below
condition
cond=(4095,GE)
This will execute the steps stepname2,4,6,8.... and
bypasses the odd steps.

Is This Answer Correct ?    3 Yes 1 No

I have a JCL with 100 steps. I want run the Alternate steps in the JCL ( Like 2 ,4,6,8 etc.. ). Ho..

Answer / alla srikanth

small change*** no need to mention cond=EVEN on on job
statement

specify restart=step2 on job statement i.e,
execution begings at step no 2 and every step from step2
onwards executed.

for odd number jobsteps specify cond=(o,le)(condition is
ture for all return codes hence steps with this cond code is
bypassed)

hence begin at step2 and odd no steps are bypassed i.e even
steps are executed

Is This Answer Correct ?    7 Yes 7 No

I have a JCL with 100 steps. I want run the Alternate steps in the JCL ( Like 2 ,4,6,8 etc.. ). Ho..

Answer / rekha

In JOB card give Restart=(name of the second step).
After that for every ODD numbered step give the cond as
COND=(0,GE) because the Condition Code will starts from 0
onwards,so every odd step will be skiped and only the even
steps will be executed.

Is This Answer Correct ?    3 Yes 6 No

I have a JCL with 100 steps. I want run the Alternate steps in the JCL ( Like 2 ,4,6,8 etc.. ). Ho..

Answer / srk

specify restart=step2,cond=even on job statement i.e,
execution begings at step no 2 and every step from step2
onwards executed.

for odd number jobsteps specify cond=(o,le)(condition is
ture for all return codes hence steps with this cond code is
bypassed)

hence begin at step2 and odd no steps are bypassed i.e even
steps are executed

Is This Answer Correct ?    1 Yes 8 No

Post New Answer

More JCL Interview Questions

Can a job have only steplib and no joblib ?

6 Answers  


JCL Example: // //RUNJCL JOB CLASS=5,MSGCLASS=6,NOTIFY=&SYSUID //STEP01 EXEC PGM=IEFBR14 // .. .. If this JCL will run or it'll throw the ERROR?

4 Answers   HCL,


what is the use of IEBGENER utility?

0 Answers  


01 GROUP-ITEM 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP MOVE ZERO TO GROUP-ITEM ADD 50 TO AMOUNT-1 what will be the content of AMOUNT-1? a.50 b.100 c.0 d.unpredictable

1 Answers  


What is the error/SOC code if dd names are not sysut1 and sysut2 in IEBGENER?

1 Answers   CTS,






Define concatenating?

0 Answers  


How to submit jcl through a cobol program?

0 Answers  


Can we DELETE all the Generations of a GDG at once, WITHOUT deleting the GDG itself ?

7 Answers   IBM,


describe the exec statement,its meaning ,syntax and keywords?

3 Answers  


what is a null indicator in db2?

5 Answers   Fiserv, IBM,


How to get cursor position from system in CICS environment ?

8 Answers  


What is STEPLIB, JOBLIB? What is it used for?

2 Answers  


Categories