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 a procedure?
What are the parameter in the job card wihtout which job won't run........
Can we find specific member without knowing the name of PDS or can we search a member to which PDS it belongs to? if so how?
Suppose a proc step has a DD statement like //ABC DD DSN=TEST.FILE1,DISP=SHR DSN=TEST.FILE2,DISP=SHR and the above DD name is overridden from the JCL as given below //procstepname.ABC DD DSN=TEST.FILE3 - Will the DD statement now have just TEST.FILE3 or it will be TEST.FILE3 and TEST.FILE2? Suppose if it is overridden twice like //procstepname.ABC DD DSN=TEST.FILE3 //procstepname.ABC DD DSN=TEST.FILE4 Will this give a JCL error? If not, what will be final output?
My requirement is : How to populate a empty PS/flat file with ONLY spaces in the first line. You should not use any input dataset to do this. I'm not sure whether you may use any utility for this purpose?
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.
In how ways you can pass the data from Jcl to cobol ?
01 GROUP-ITEM 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP MOVE ZERO TO GROUP-ITEM ADD 50 TO AMOUNT-1 what will be the content of AMOUNT-1? a.50 b.100 c.0 d.unpredictable
i have records from 1 t0 100 . i need to open records from 10 to 18 and change the values in tht ? how can i do tht ?
is it possible to submitt more than one job in job card in jcl? and if yes than is it necessary to have the jobs same name?
What is the significance of addrspc parameter in the exec statement?
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?