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 ? | 12 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 |
what is alternate index?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
//step#3 exec pgm = hkbc762 what is wrong with the syntax?
How to release a JOB (from the input queue) held by TYPRUN = HOLD ? and how to see the installation default time after which a JOB will be automatically released ? How to see the list of currently HELD JOBS ?
HOW TO CONVERT VARIABLE BLOCK TO FIXED BLOCK ?
A dd statement consists of 4 fields. Name them?
in my jcl have 20 steps step1,step2,.... step20.and i have to execute step1,step2,..and skip the step3 and remaing step4,step5 are execute? i want skip step3 only? what code u can write?
Are there any set of rules for the names of the steps used in a job? What are they?
In one of intervie, my interviwer asked, I have a file which contains 4 records I would like to split the 4 different outputs for each record how to do?
14 Answers Cap Gemini, Cognizant, JPMorgan Chase, TCS, Xansa,
In job processing, what happens in execution stage?
can we have more than one job in a single job card that is we are specifying only one 'job' statement in the jcl.
Explain the function of the steplib dd statement?