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

//ERFDS JOB //STEP1 //STEP2 //STEP3...COND=(4,LT) //STEP4 1.CONDITION IN STEP3 REFERS TO WHICH STEP'S RETURN CODE (STEP1 OR STEP2)? 2.IN ABOVE PROGRAM IF CONDITION SATISFIES IN STEP3 WHICH STEPS WILL EXECUTE?? AND WHY? IF CONDITION IN STEP3 SATISFIES

5 Answers   IBM,


What is the use of the utility DFSRRC00 in the JCL?

2 Answers   Convergys,


If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?

0 Answers  


What is Uncatalog dataset? How can we access/use them?

1 Answers  


can u execute a proc from another proc?

5 Answers   Logica CMG,






Is it possiable to use a gdg in the INCLUDE statement in a SORT jcl? I am using this because I want to change the condition with out changing the jcl. Please provide with a sample code.

1 Answers  


01 A. 10 B pic X(10). move spaces to A. move spaces to B. output in A & B

2 Answers   Perot Systems,


What is SORT ? How do we eliminate duplicate records ? How do I select some records using SORT ?

9 Answers   GE, Xansa,


What are hierarchy levels in jcl?

0 Answers  


how to solve u4038 abbend?........

3 Answers   Atos Origin, TCS,


Can there be 2 job statements in a JCL? If yes what is the purpose of doing tha?

3 Answers  


How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?

0 Answers  


Categories