Answer Posted / rajani mazumder
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
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Can I send output of job to my remote device careerride123?
What do you understand by the terms: joblib and steplib?
What is use of restart and how to use it?
What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?
Explain the function of //jcllib statement?
The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?
Explain how can the attributes of one sms dataset be copied to another dataset?
What is one line to pass PARM from JCL to COBOL?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
Is automatic restart possible in jcl?
whats the diff bw the evaluate also and and?
What is condition checking in jcl? Is this possible?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
What is the function of dd name parameter with a 2 part structure; audit.report?
what is the JCL statement consists of?