IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Restarting a Step after the Abend


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srinuibm

New User


Joined: 07 Mar 2005
Posts: 9

PostPosted: Thu Mar 10, 2005 5:16 pm
Reply with quote

hai

i am having a 25 steps in a jcl . if the step abends at step 10 .
if i want to restart the from the 10 th step (not from the beginning) what should i do ? how to code it ? please give me the steps

thank u


regards
srinu
Back to top
View user's profile Send private message
ovreddy

Active User


Joined: 06 Dec 2004
Posts: 211
Location: Keane Inc., Minneapolis USA.

PostPosted: Thu Mar 10, 2005 5:31 pm
Reply with quote

Hi Srinu,

We can use RESTART parameter to do this.

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

* Specifies that the system is to restart the job at the first job step.
stepname Specifies that the system is to restart the job at the beginning of the named job step or at a checkpoint within that job step.
stepname.procstepname Specifies that the system is to restart the job at the beginning of the named job step of the cataloged procedure or at a checkpoint within that job step. Stepname identifies the EXEC statement that calls the procedure and procstepname identifies the job step within the procedure.

checkid Specifies the name of the checkpoint at which the system is to restart execution.

The two ways to use the RESTART parameter

A deferred step restart

Restarting from 10th step
Case 1: //MM01F JOB (36512),'LE MENENDEZ',RESTART=STEP10
Restarting from 3rd step in INV3020 procedure
Case 2: //MM01G JOB (36512),'J TAYLOR',RESTART=STEP3.INV3020

A deferred checkpoint restart

//MM01H JOB (36512),'M MURACH',RESTART=(STEP2,CKPT4)
//SYSCHK DD DSNAME=MM01.CHECK,DISP=OLD

Description

The RESTART parameter on the JOB statement allows you to restart a job from a specified job step, procedure step, or checkpoint within a job step.
If the job is restarted from a job or procedure step, it's called a deferred step restart. If the job is restarted from a checkpoint, it's called a deferred checkpoint restart.

The stepname and procstepname specified in a RESTART parameter must be unique in order for the system to determine the correct restart step. If not, the results are unpredictable.

When using a deferred checkpoint restart, you have to include a SYSCHK DD statement to identify the data set where the checkpoint reference can be found.

Before resubmitting a job with the RESTART parameter, check to be sure that all backward references to EXEC statement PGM parameters and data sets are either accounted for or eliminated. If a temporary data set passed from a previous job step is used, it may be necessary to restart the job from the step that creates the data set. Also make sure that any data sets created by the job step in a previous run are deleted.

Bye,
Reddy.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Abend S0C4 11 (Page Translation Excep... PL/I & Assembler 16
Search our Forums:

Back to Top