I have 10 steps, I want to run STEP1 TO STEP4 then I should
not run STEP5 and STEP6. Aganin I want to execute from
STEP7 to STEP10. ONLY using CONDITION CODES how can we
execute this process?
1. Where we can set cond codes for STEP5 and STEP6?
2. How can we execute remaining steps from STEP7 to STEP10?

Answers were Sorted based on User's Feedback



I have 10 steps, I want to run STEP1 TO STEP4 then I should not run STEP5 and STEP6. Aganin I want..

Answer / harsih

there 2 ways for this

FIRST METHOD is use ibm utility called "IEBEDIT" and in
sysin in the include statement , give he steps u want to
execute..........



SECOND METHOD = and the steps whicc u dowant to excute code
COND{O,LE} ON THOSE STEPS

Is This Answer Correct ?    11 Yes 0 No

I have 10 steps, I want to run STEP1 TO STEP4 then I should not run STEP5 and STEP6. Aganin I want..

Answer / lokesh

1) Use cond code as COND=(0,LT,STEP04) on step 05 and COND=
(0,LT,STEP04) on step 06. As return code is always non-
negative, step05 and step06 will never get executed.

2) To execute remaining steps, use cond code as (4,LT)

Is This Answer Correct ?    5 Yes 7 No

Post New Answer

More JCL Interview Questions

Say I have a file with 12 records. Each record has the name of the month. I have to append data in these 12 records into 1 record. How is it possible?

2 Answers   CTS,


What is dummy parameter in JCL??

3 Answers   TCS,


What is DISP= (NEW,PASS,DELETE)?

3 Answers   HCL,


explain concatinating datasets?

1 Answers  


In your JCL, run the even numbered steps if date is even and run odd numbered steps if date is odd . Where do you generate the date ??in cobol or JCL ??

2 Answers   CSC,






how to create gdg with out using idcams utility

8 Answers   DSRC,


I have DATE filed like DD-MM-YYYY, So I want output should be MM/DD/YYYY using JCL? Can anybody post the answer for above requirement?

4 Answers   BirlaSoft, FIS, Wipro,


01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05 ALLOWENCES PIC 9(3) if BASIC-PAY has a value 1000 and ALLOWENCES has a value of 250,what will be displayed by the statement DISPLAY GROSS-PAY a.1250 b.01000250 c.01250 d.1.250

1 Answers  


what if any ,is the syntax error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.

1 Answers  


Write a JCL by using the below requirement: File1 =1, File2 =11 and output needs to come as File3 =111?

8 Answers   Saggezza,


Can we browse or edit the GDG dataset if it is a tape entry?

4 Answers  


wht is step lib n job lib ? where can we code joblib n steplib ?

3 Answers   L&T,


Categories