Define and DELETE restart file.

JES2/3, JCL, utilities.
Post Reply
Riya Das
New Member
Posts: 1
Joined: Thu Apr 16, 2015 10:01 am

Define and DELETE restart file.

Post by Riya Das »

Hi,

In most of the JCL, I usually observed that they have coded files like this -

Code: Select all

//************************************************** 
//** RESTART FILE 
//************************************************** 
//STEP01 EXEC PGM=IEFBR14 
//DDPRO1 DD DSN=&PROD..ESPN.RESTART.DD99N, 
// DISP=(,CATLG,DELETE), 
// SPACE=(TRK,(2)),VOL=REF=(PROD.RSTRT) 


//********************************************************************* 
//** DELETE RESTART FILE ** 
//********************************************************************* 
//STEP99 EXEC PGM=IEFBR14,COND=(0,LT) 
//DDPRO1 DD DSN=&PROD..ESPN.RESTART.DD99N, ,DISP=(MOD,DELETE) 
restart files are cataloged and at the end they are deleted, please let me know why do we code them this way? What is the benefit?
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: Define and DELETE restart file.

Post by William Collins »

How else do you feel they should be coded?
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “JCL - Job Control Language.”