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 |
Explain about ISPF/TSO Commands
Using DELETE what type of file can you delete? a)SEQUENTIAL FILE B)INDEXED FILE C) D) Some options were there..i cant remember
Explain about LMQUERY�give a dialog information about a data set
List the various advantages of using jcl language?
how to concatenate datasets
db2 maintains information about the data... a.in tables. b.in a set of tables known as db2 catalog. c.in db2 database. d.none of the above. 1 What is the maximum number of tables that can be stored on a Partitioned Table Space ? 1 what is contained in the DB2 node lock file? A) data base names B) data base users names C) license keys D) server names Accenture 5 Can a primary key have null values? If we try to insert a null value in a primary key column, will it work or give an error code? 6 When you are working with the project after coding what will u do? Like what type of documents u will prepare? How will u do testing? 2 how to delete perticular row from table for ex. how you will delete 3rd row from table please answer THANKS IN ADVANCE IBM 7 max number of columns in a db2 table? 6 What is package versioning? Please give an example. 1 What is the picture clause of the null indicator variable? 6 How do you filter out the rows retrieved from a Db2 table ? 1 What is DB2 (IBM Database 2)? 3 Can any one tell me about Restart logic in DB2.
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,
What is the purpose of include statement in a JCL?
The maximum number of steps in a job?
How do you send the output of a COBOL program to a member of a PDS?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
what are the options in file-aid to edit vsam dataset and to compare data sets.