Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


i have 10 steps in jcl program but i have to exicute only
2,4,6,8th and 10th ?how it's possible?

Answers were Sorted based on User's Feedback



i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possib..

Answer / amarnath reddy

Hi,

It is possible to execute selected steps. Use IEBEDIT
utility we can execute selected steps.

Ex: //xcon39ac dob (p54I9k),'amarnath',class=x,....
//JS05 exec pgm=IEBEDIT
//.
.
.
//SYSIN DD *
EDIT TYPE=INCLUDE,
STEPNAME=(STEP2,STEP4,STEP6,STEP8,STPE10)
/*
//

Is This Answer Correct ?    31 Yes 0 No

i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possib..

Answer / suputhru

MR Amarnath ReddY IS RIGHT.


Use IEBEDIT utility

NOTE: For not execution of steps use: EXCLUDE

Is This Answer Correct ?    5 Yes 0 No

i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possib..

Answer / raghavendra

Use Restart=step2 command in job card, then use COND=(0.LE) in steps 3,5,7,9 to skip (this cond parameter will the skip the steps only if previous steps ended with CC=0)

//Jobid job (t,aa,sys),'acct',class= , msgclass= ,region=0M,restart = step2
//*
//step1 exec
//step2 exec pgm=xxx
//step3 exec pgm=xxx,cond=(0,le)
//step4 exec
//step5 exec pgm=xxx,cond=(0,le)
//step6 exec
//step7 exec pgm=xxx,cond=(0,le)
//step8 exec
//step9 exec pgm=xxx,cond=(0,le)
//step10 exec

Is This Answer Correct ?    1 Yes 0 No

i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possib..

Answer / druks

Does the job have instream JCL or a instream proc or are the job steps in a proc (in a proclib) with a execution JCL

Is This Answer Correct ?    0 Yes 0 No

i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possib..

Answer / harshil gandhi (trainee at cog

i have 10 steps in jcl program but i have to exicute only 
2,4,6,8th and 10th ?how it's possible?
yes off course its possible..

       step1;
xx     step2;
       step3;
xx     step4;
       step5;
xx     step6;
       step7;
xx     step8;

explanation= use xx on the left side of the step or line in the command... and write (sub nx;) in the command...then it will execute only the excluded lines...thank you for reading... 

Is This Answer Correct ?    0 Yes 0 No

i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possib..

Answer / pavan

If we can edit the JCL then add a COND to the steps which you don't want to execute so that you can skip those.

Is This Answer Correct ?    5 Yes 6 No

i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possib..

Answer / sivaramakrishna

yes we can execute the above statements using cond
condition.

Is This Answer Correct ?    0 Yes 1 No

i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possib..

Answer / druks

It , depends on you having the JCL in a proc or are running it instream (simpler option) , you can delete the steps you do not require and run job'
Proc : in the EXEC JCL
Job statement put a RESTART Parm ,
in the EXEC JCL .
//stepa exec procname,cond=(1111,ne,stepxxx),cond=(1111,ne,stepxx1)
stepxxx ,stepxx1 step you want to exclude

Is This Answer Correct ?    0 Yes 5 No

i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possib..

Answer / naveen

yes its possible comment the 1,3,5,7,9 steps

Is This Answer Correct ?    3 Yes 9 No

i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possib..

Answer / mahesh

I think its not possible because , always first step need
to execute, then based on the CC of the first step,
we can specify COND whether to SKIP or Process a Step in
JCl.

Note : You cannot use Restart Parameter in the above
cases. it is used only when the Job is Abended.

Is This Answer Correct ?    1 Yes 11 No

Post New Answer



More JCL Interview Questions

How do you submit a JCL under CICS environment ?

1 Answers   IBM,


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

0 Answers  


Hi, My dataset have multiple records, say 100. I want to start copy records only after a record contain a specific value that may be in a specific position. Secondly I want to stop copying rest records if certain record contains a specific value. Can it be done using SORT/ICETOOL utilities?

5 Answers   Patni,


in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?

0 Answers   IBM,


can we modify the code in copy book? if it possible how to submit ofter the modification.

3 Answers   IBM, L&T,






how to set dependancy for jobs?

4 Answers  


Name the system library from which modules are retrieved at execution

2 Answers  


I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.

0 Answers  


What is a JCL Command statement ?

1 Answers   IBM,


how you can direct the data to spool using SYSOUT option?

0 Answers  


When cursor is not closed what is the error?

3 Answers   IBM,


how do you code a null statement?

0 Answers   IBM,






Categories