How do you restart a step in JCL?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What statement can be used to send data to another mvs jes3 node?

811


How is the record format of an output dataset specified?

737


When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

922


What does a disposition of (MOD,DELETE,DELETE) mean ?

659


What is the difference between the positional and keyword parameters? Give examples.

696






What are the parameter we cannot use in procedure? How many instream we can write in single jcl?

577


Is it possible to left uncode disp? If yes, how?

700


Differentiate between the joblib and the steplib statements?

853


What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?

1802


if the submitter of a job wants to inform another user about the job completion, how can it be done?

744


How dummy is used in jcl?

639


Brief description of inline procedure of jcl.

675


what is the resolution for sb37 error

7685


Is their any set of rules for dd? Explain.

652


What is the function of the steplib dd statement?

731