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

What is the use of DSNDB07 ?

1 Answers  


Suppose I have a file with three fields with data in the following format 1. empid - S9(4) COMP 2. empname - X(20) 3. empsal - S9(5)V(2) COMP-3 If I view this file, it will not be in a readable format. How to display the empid and empsal fields in a readable format without using COBOL program? What kind of SORT card will have to be coded?

4 Answers  


What is JCL LIB ?

3 Answers   Xansa,


why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.

0 Answers  


IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C

0 Answers  






What is a S0C4 error ?

2 Answers  


COND -> step1 . . step2, Step2, Executes if the CC of step1 is 0. But even if it is NOT 0 and if we dont give COND, will step2 be executed ?

4 Answers   IBM,


what is the Difference between SYSIN and PARM ?

5 Answers   IBM,


How to pass values in jcl to cobol?

4 Answers   IBM, Infosys,


consider the following progrm statements MOVE 0 TO SW.NO.OF.REC PERFORM PRI-OUT UNTIL SW=1 DISPALY NO.OF.REC STOP RUN PRE-OUT READ IN-FILE AT END MOVE 1 TO SW WRITE OUO-REC FROM IN-REC ADD 1 TO NO.OF REC if the IN-FILE contains 1000 records what value will be displayed after the PERFORM is over? assume that N0.OF.REC has PIC 9(4) a.1000 b.1001 c.1 d.none of the above

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,


Wrete a JCL to compare two files and mached records move to onc file & un mached rows wants to another file?

13 Answers   CGI, DSRC, IBM,


Categories