How do you restart a step in JCL?

Answers were Sorted based on User's Feedback



How do you restart a step in JCL?..

Answer / sv

restart = jobstepname.procstepname
eg :jcl
if we need to restart from step2 in the proc...

//job1 job
restart=s1.step2
//s1 exec proc1
....

proc:
//proc1 proc
//step1 exec=...
//step2 exec=...
//step3 exec=...

Is This Answer Correct ?    91 Yes 20 No

How do you restart a step in JCL?..

Answer / guest

Use RESTART=step name.

Is This Answer Correct ?    73 Yes 18 No

How do you restart a step in JCL?..

Answer / izwarya

//JOBNAME JOB ACCT,RESTART=PROCA.STEP2
//PROCA EXEC PROCA

PROCA:

//PROCA PROC

//STEP1 EXEC ...
//STEP2 EXEC ...
//STEP3 EXEC ...

The above program would restart the job from STEP2.

Is This Answer Correct ?    46 Yes 2 No

How do you restart a step in JCL?..

Answer / santosh

Suppose there are 10 steps in a jcl,i need to execute form
the step5 to step10(need not execute from step1 to step4)
in that case i suppose to use restart.

ex:
//JOBNAME JOB ACCT,RESTART=PROCA.STEP5

//PROCA EXEC PROCA

PROCA:

//PROCA PROC

//STEP1 EXEC ...
//STEP2 EXEC ...
//STEP3 EXEC ...
//STEP4 EXEC ...
//STEP5 EXEC ...
//STEP6 EXEC ...
//STEP7 EXEC ...
//STEP8 EXEC ...
//STEP9 EXEC ...
//STEP10 EXEC ...

Is This Answer Correct ?    38 Yes 6 No

How do you restart a step in JCL?..

Answer / suputhru

Use RESTART=step name.

for procs:
restart = jclstepname.procstepname
jclstepname:name of the jcl step which invoke the proc.
Procstepname : the prostep which you want to restart.
eg :jcl
if we need to restart from step2 in the proc...

//job1 job restart=s1.step2
//s1 exec proc1
....

proc:
//proc1 proc
//step1 exec=...
//step2 exec=... -----Here we are going to execute step2
//step3 exec=...

--- Hi SV, you given a awesome answer. keep it up.
-Sk.

Is This Answer Correct ?    24 Yes 2 No

How do you restart a step in JCL?..

Answer / manas mohapatra uradha

Restart = Procstep.stepname

Is This Answer Correct ?    30 Yes 13 No

How do you restart a step in JCL?..

Answer / 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

How do you restart a step in JCL?..

Answer / rammurthy

Without Procs.
Use RESTART=step name.

For procs:
restart = jclstepname.procstepname
jclstepname:name of the jcl step which invoke the proc.
Procstepname : the prostep which you want to restart.
eg :jcl
if we need to restart from step2 in the proc...

//job1 job restart=s1.step2
//s1 exec proc1
....

proc:
//proc1 proc
//step1 exec=...
//step2 exec=... -----Here we are going to execute
step2
//step3 exec=...

Is This Answer Correct ?    4 Yes 0 No

How do you restart a step in JCL?..

Answer / manikandesvaran

There are much ways to restart a program.

RESTART= ({* } [,checkid] )
({stepname } )
({stepname.procstepname} )

1)If the job got failed in JES2 system.this will restart the program from the beginning.

//SORTVBFL JOB SORTVBFL,(SORTVBFL),CLASS=A,MSGCLASS=A,NOTIFY=&SYSUID
Restart=Y

2)If you want to Restart a particular step in JCL.
just use RESTART=STEPNAME(i.e Step040)

3)if you want to restart a particular step in proc
Use RESTART=procstepname.STEPNAME

*****************JCL*************************************
//SORTVBFL JOB SORTVBFL,(SORTVBFL),CLASS=A,MSGCLASS=A,NOTIFY=&SYSUID
//JCLLIB JCLLIB ORDER=(AAAA.BBBB.CCCC)
//JCLPROC EXEC JCLPROC
.
*****************JCL*************************************
.
****************PROC*(AAAA.BBBB.CCCC)***********************

//JCLPROC PROC

//STEP10 EXEC PGM=iefbr14
//.....
//.....
//STEP20 EXEC PGM=
//.....
//.....


if you want to restart at step020 of proc

Code RESTART=JCLPROC.Step020 on the JCL

4)//WORK JOB ,PORTER,RESTART=(*,CKPT2)
//SYSCHK DD DSNAME=CHKPT,UNIT=3330,DISP=OLD

checkid :-

Specifies the name of the checkpoint at which the system is to restart execution. This checkpoint must be in the job step specified in the first subparameter.
Omit checkid to request restart at the beginning of the specified job step.

When the name contains special characters, enclose it in apostrophes. Code each apostrophe that is part of the name as two consecutive apostrophes. For example, code CHPT'1 as 'CHPT''1'.

The JOB statement indicates that the system is to restart execution at checkpoint CKPT2 in the first job step. The SYSCHK DD statement defines the data set on which the system wrote checkpoint CKPT2.

Is This Answer Correct ?    3 Yes 0 No

How do you restart a step in JCL?..

Answer / xxx

RESTART=TRANSFORM.STEP10

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More JCL Interview Questions

how many max steps can we use in a job? pls answer to my question

9 Answers   TCS,


How to overide the symbol parameter in the jcl ?

3 Answers   UST,


Do we need to code DCB parameters when using DISP position as MOD?

1 Answers   Accenture,


hi iam learning mainframes,can anybody tell me how to check JCL errors.(after submiting the JCL we have check in spool or is there any other method)

8 Answers  


How does jcl act on code(if you take a cobol program)?

0 Answers  






What does a disposition of (NEW,CATLG,KEEP) mean?

1 Answers   Cap Gemini,


i have 10,000 records in one input file.i want to sort 1 to 5000 records in one outputfile and remaining records sort in another output file write the syntax for this?

4 Answers   DELL,


In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and want to execute step04. and once step04 is done then I want to go back and execute step03. once step03 is completed I want execute step05, 06 and so on... can any one tell me how do i do that???

10 Answers   Perot Systems,


What is the function of a dd statement?

0 Answers  


List the different components of jcl statement?

0 Answers  


What all are the changes to be made in JCL so as to do testing?

2 Answers   TCS,


Can we use COND=EVEN on a job card, when jobs are scheduled through scheduler?

5 Answers   L&T,


Categories