How to execute only th 15th step of JCL consisting of 50 steps?
Answers were Sorted based on User's Feedback
Answer / madhavi
Restart= step15 will run from 15th step not only 15th step
Is This Answer Correct ? | 28 Yes | 0 No |
Answer / muttaiah
There are 3 ways to achieve the above task.
1) Using restart & Cond:
Code restart=step15,cond=(0,le)
2) using restart & Null stmt
restart=step15, Code a null stmt(//) after step15.
3) Using Iebedit
//jobcard
//stepname exec pgm=iebedit
//sysut1 dd dsn=actual pds/ps that has the jcl
//sysut2 dd sysout=(*,intrdr)
//sysin dd *
edit type=include,stepname=step15
/*
Using option 1 & 2 will require the jcl to be copied to ur
personal pds and edit the jcl and pass it on to Operation
team to restart the job with the override pds
using option3 we can directly send this jcl to run without
editing the actual jcl
best way would be create a iebedit jcl in ur program
whenever the job needs to run for particular steps change
the iebedit jcl and send it to the team who will run the job
Hope this will give complete idea regarding restarting a
job.
Corrections are heartily welcomed.
Is This Answer Correct ? | 11 Yes | 0 No |
Answer / paray2x
One option is to use RESTART=STEP15 and insert a null JCL
before it.
Otherwise, determine what condition code STEP15 will
return. If it will return 0, then code RESTART=STEP15 and
COND=(0,EQ) on the job card itself.
The COND will apply to all steps. Since STEP15 has no
previous step when restarting, COND will be ignored for
this step. Then, other steps will flush because of the COND
parameter.
Is This Answer Correct ? | 12 Yes | 2 No |
Answer / nygrande
I go with Raj reply. Use iebedit utility.
The sintax is:
//SYSIN DD *
EDIT TYPE=INCLUDE, STEPNAME=(STEP15)
/*
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / muttaiah
Nishant,
Cond wil execute the step only when the cond is false. If
you see we have given Cond as cond=(0,le) so it will
satisfy what ever may be the return code of the step that's
why it will bypass all the steps.
Hope this answers.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sathish
What about using SUBS in the JCL comand line and selecting step15 alone to run
It will run only with selected job step
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nishant
bt suppose step 15 returns code = 0 nd we coded cond=(0,le)
aftr 15th step thn will it execute the step aftr 15th step
or not? i think i should execute..wat u say
Is This Answer Correct ? | 0 Yes | 1 No |
In your JCL, run the even numbered steps if date is even and run odd numbered steps if date is odd . Where do you generate the date ??in cobol or JCL ??
Can we change the LIMIT of GDG?
How many extents are possible for a sequential file ? For a VSAM file ?
What is the purpose and meaning of the REGION keyword and what JCL statement is it associated with?
what's the significance of freespace(0 0) and freespace(100 100)
I have four steps in jcl they are STEP1,STEP2,STEP3 and STEP4. Can it possible to run the reverse order like step4 first then step3,step2,step1?
A job has 150 steps i want to execute only 57th step
A. Job Abended in STEP03. Now run job again to execute STEP03, STEP04 (STEP01,STEP02 should not execute again)
3 Answers Cap Gemini, CSC, Xchanging,
How to send data from cobol program to jcl?
The maximum number of steps in a job?
IF we are calling a PROC from Jcl...This Proc have 3 steps in it and we want to execute only the second step using the JCL, How to do it?? Please give the answer ASAP:)
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?