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 |
proc1,proc2,up to proc5 is there if i want to call proc1 and proc5how can u write the code
how to override PROC? please give answer in details. Please mention how to write it in JCL. Thanks in advance.
How can u know the current date using jcl?
My JCL has 4 steps that execute PROC’s P1, P2, P3 and P4 as shown below //P1 EXEC PROC=P1 //P2 EXEC PROC=P2 //P3 EXEC PROC=P3 //P4 EXEC PROC=P4 There are four steps S1, S2, S3 and S4 in each PROC’s (i.e. P1, P2, P3 and P4) I want to execute only step S2 of PROC P2 and no other steps or PROC’s. How do you achieve this?
I have 5 steps in my jcl ,I need to execute first three steps and then 2nd step again ,4th and 5th steps if rc of 2nd step is zero
What are s0c1, s0c4, s0c5, s0c7 and socb?
I have a job which is a long-running one. Processes millions of records. Due to some run-time problem (not a problem due to the job/data) the job abends.What needs to be done to make the job complete successfully.
i have a string of 80 chars i want to replace 4th char with "a"?
How system will identify whether user wants to create PS or PDS? If answer is SPACE parameter then why we need to pass ps or po as dataset organisation while creation
what is the function of spool command?
How to execute only th 15th step of JCL consisting of 50 steps?
Suppose I have a file with three fields with data in the following format 1. empid - S9(4) COMP 2. empname - X(20) 3. empsal - S9(5)V(2) COMP-3 If I view this file, it will not be in a readable format. How to display the empid and empsal fields in a readable format without using COBOL program? What kind of SORT card will have to be coded?