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
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 ? | 35 Yes | 0 No |
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 |
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 ? | 4 Yes | 1 No |
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 |
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 |
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 |
Answer / sivaramakrishna
yes we can execute the above statements using cond
condition.
Is This Answer Correct ? | 0 Yes | 1 No |
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 |
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 | 14 No |
What is the difference between primary and secondary allocations for a dataset?
what is the general use of PARM? Give an explanation about the system defined parameters that could be passed through this PARM like XREF,LIST,LET,APOST,RENT etc..
How Can we see all generations of a GDG ?
is step name is compulsory in jcl ?
//ERFDS JOB //STEP1 //STEP2 //STEP3...COND=(4,LT) //STEP4 1.CONDITION IN STEP3 REFERS TO WHICH STEP'S RETURN CODE (STEP1 OR STEP2)? 2.IN ABOVE PROGRAM IF CONDITION SATISFIES IN STEP3 WHICH STEPS WILL EXECUTE?? AND WHY? IF CONDITION IN STEP3 SATISFIES
What is the improvement to COND= in the latest version of MVS?
What is the difference between run mode and addressing mode?
What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?
how to write a jcl prog to copy alternate recs from ps1 to another ps2,suppose ps1 having 10 recs?
I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
What do you understand by jcl?