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
What statement can be used to send data to another mvs jes3 node?
How is the record format of an output dataset specified?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
What does a disposition of (MOD,DELETE,DELETE) mean ?
What is the difference between the positional and keyword parameters? Give examples.
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
Is it possible to left uncode disp? If yes, how?
Differentiate between the joblib and the steplib statements?
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?
if the submitter of a job wants to inform another user about the job completion, how can it be done?
How dummy is used in jcl?
Brief description of inline procedure of jcl.
what is the resolution for sb37 error
Is their any set of rules for dd? Explain.
What is the function of the steplib dd statement?