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
Explain how can an in-stream dataset be terminated?
What are the parameters that are used in creating a gdg?
How can values be passed from the job stream to an executable program?
can any one plzzzzzz tell the jcl code for creating ps using idcams
Explain how can values be passed from the job stream to an executable program?
Explain the function of the steplib dd statement?
what is DD statement is used in JCL?
Is there any command to check wether the ps file is in sorted order?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
Which statement is used to identify the private libraries in job?
What is the significance of addrspc parameter in exec statement?
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
How can the submitting users racf authority be overridden in a job stream?
how to run batch program without jcl?
how to compare two datasets without using superce because output is limited to 133 bytes