i have 3 steps in my jcl, where i want to run only one step
at a time depending on the variable. How should i give the
condition statement... I have tried this with two steps
which is working but not able to add condn for the 3rd
step. can anyone help me... I want to know the cond stmt
which i can code in step 3 and step4, so that only either
step2 or step3 or step4 executes

Answers were Sorted based on User's Feedback



i have 3 steps in my jcl, where i want to run only one step at a time depending on the variable. ..

Answer / uday bhaskar

if we refer cond perameter with first step then we can
bypass the third and forth steps also
if you not refer then it will take return code of the above
step so if above step was bypass then all will bypas

Is This Answer Correct ?    7 Yes 0 No

i have 3 steps in my jcl, where i want to run only one step at a time depending on the variable. ..

Answer / anjui

We can achieve it through if then else statement in jcl
along with the instream proc.

Is This Answer Correct ?    4 Yes 0 No

i have 3 steps in my jcl, where i want to run only one step at a time depending on the variable. ..

Answer / p.j.karthikeyan

Uday Bhaskar is correct

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More JCL Interview Questions

what is a null indicator in db2?

5 Answers   Fiserv, IBM,


what is a cataloged procedure ?

1 Answers   Xansa,


which utility is used to run a cobol-db2 program?

0 Answers   IBM,


i have 3 steps in my jcl, where i want to run only one step at a time depending on the variable. How should i give the condition statement... I have tried this with two steps which is working but not able to add condn for the 3rd step. can anyone help me... I want to know the cond stmt which i can code in step 3 and step4, so that only either step2 or step3 or step4 executes

3 Answers  


Name the statement which can be used to send data to another mvs jes3 node?

0 Answers  






I have a dataset with record length 40 in production, due to some requirements it was changed to 80. Then how can we know the jobs which are effected by this change and how can we resolve it.

3 Answers   iGate,


How to execute step2,step5,step7 of a proc of 10 steps? You are not allowed to change in JCL.

3 Answers   IBM,


Can we find specific member without knowing the name of PDS or can we search a member to which PDS it belongs to? if so how?

6 Answers  


How to change default PROCLIB?

1 Answers  


how can we pass parameters from JCL to cobol subprogram...my requirement is i should not get data from mainprogram but i need it from JCL directly

5 Answers   IBM, TCS,


I have a jcl which is using 2 data sets i want to override those data sets. how can i override the files within the JCL. Give me the syntax. Make sure that it is not calling any Proc.

1 Answers  


As PARM can supply information to a program ? Can PARM be used to supply information to a cataloged or Inline Procedure also ?

2 Answers   IBM, RS Software,


Categories