Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Restarting a Step after the Abend

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Restarting a Step after the Abend
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us