there are 10 steps in jcl how to execute the steps from
step2 to step8 only

Answers were Sorted based on User's Feedback



there are 10 steps in jcl how to execute the steps from step2 to step8 only ..

Answer / sai

Hi,

CODE THE CONDITION PARAMETER COND=
(0,LE) IN THE STEPS THAT WE DONT WANT TO EXECUTE

Regards
Sai

Is This Answer Correct ?    11 Yes 0 No

there are 10 steps in jcl how to execute the steps from step2 to step8 only ..

Answer / chowdary

give restart from step 2 and give end statement after 8th
step

it might be possible by using cond parameter

Is This Answer Correct ?    8 Yes 3 No

there are 10 steps in jcl how to execute the steps from step2 to step8 only ..

Answer / suputhru

AAA BHAI LOOG, First understand the requirement.

1.we can't code COND=(0,LE) for first step.
here we can use COND=only,
2.for not execution of 9 and 10 use COND=(0,LE)

else direct answer: IEBEDIT utility.
Incude 2 to 8 stepnames.

ex:

//STEP001 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=XXX.GENERAL.STUDY(TEST001),DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD *
EDIT TYPE=INCLUDE, STEPNAME=(STEP001,STEP002,...STEP008)
/*

Similarly, we can use TYPE=EXCLUDE to exclude the steps from exec.

Is This Answer Correct ?    6 Yes 3 No

there are 10 steps in jcl how to execute the steps from step2 to step8 only ..

Answer / vinay sonar

You can use cond parameter but it will be very tedious.
So you can use IEBEDIT
Syntax is

//SYSIN DD*
EDIT TYPE=INCLUDE,STEPNAME=
(STEP2,STEP3,STEP4,STEP5,STEP6,STEP7,STEP8)
/*

Is This Answer Correct ?    0 Yes 0 No

there are 10 steps in jcl how to execute the steps from step2 to step8 only ..

Answer / guest

He wants step 1 and 10 should be bypassed and not 9 and 10.
We can use restart parameter

Is This Answer Correct ?    1 Yes 3 No

there are 10 steps in jcl how to execute the steps from step2 to step8 only ..

Answer / anonymous

If it is confirm that step 2 to step 8 will execute normally
then what we can do is write COND=(0,EQ) for step 9 &
step10.So these last steps will be byepassed.

Is This Answer Correct ?    4 Yes 7 No

Post New Answer

More JCL Interview Questions

How to change default PROCLIB?

1 Answers  


i have 10 steps in my jcl. -->if i want to execute my program from 5th step what i have to do? don't give //* in ur previous steps --> if i want to execute my program from 1to 5 steps only what i have to do?

2 Answers  


My JCL contains four steps //STP1 A(+1), DISP = NEW //STP2 A(+2), DISP = NEW //STP3 A(+3), DISP = NEW //STP4 A(+1), DISP = OLD STP3 was abended and I want restart my JCL from STP3 onwards & what are the precaution I want to take & what are the changes I need to make. Pls let me know.

4 Answers   CTS,


i have a string of 80 chars i want to replace 4th char with "a"?

3 Answers   CSC,


hi in one of the interview one asked me how to submit a job from cobol?as well as how to submit a jcl from CICS? can u pls any one tell me..

1 Answers   CTS,






What are the utility programs in jcl?

0 Answers  


what is use of dsn parameter in dd statement?

0 Answers   IBM,


How to pass values in jcl to cobol?

4 Answers   IBM, Infosys,


How do you handle empty files in a JCL ?

3 Answers   Wipro, Xansa,


What is the meaning of keyword in JCL? What is its opposite?

1 Answers  


Explain about Cobol Subroutines

1 Answers  


How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

0 Answers   CSC, SPIC,


Categories