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

If RETPD=45 is specified


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

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Thu Apr 02, 2009 5:27 pm
Reply with quote

while creating a dataset, if a RETPD=45 is specified then the dataset will be deleted automatically after 45 days, please confirm
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Apr 02, 2009 5:29 pm
Reply with quote

Nope.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Apr 02, 2009 5:31 pm
Reply with quote

What did the JCL Language Reference and User Guide (link at the top of the page) tell you?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Apr 02, 2009 5:35 pm
Reply with quote

no ( as a general point )
when the retention period expires the dataset will be treated as a dataset without expiration date
Back to top
View user's profile Send private message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Thu Apr 02, 2009 5:35 pm
Reply with quote

In the jcl manual it haven't specified that whether the datasets will be deleted automatically or not.

that is the reason i want to confirm it should use EXPDT or RETPD parameter.

As per the expat updates datasets are eligible for deletion but will not be deleted automatically right..
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Apr 02, 2009 5:43 pm
Reply with quote

that' s exactly what we have said...
what is that it is not clear ?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Apr 02, 2009 6:07 pm
Reply with quote

The expiration of datasets is determined by the SMS ACS routines which are created and maintained by the storage people.

If they have set up the ACS routines correctly, any unauthorised use of RETPD / EXPDT will be ignored and the dataset will be attributed the correct retention / backup attributes as defined in the dataset lifecycle policy.

Why have rules in place and then allow users to ignore them by specifying their own criteria.
Back to top
View user's profile Send private message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Thu Apr 02, 2009 8:19 pm
Reply with quote

Have run the test jcl with RETPD

Code:

STEP010  EXEC PGM=IEFBR14                                     
STEPLIB  DD  DSN=XXXX.PROD.LINKLIB,DISP=SHR                     
FILE1    DD  DSN=Pxxxx.SSR.Rxxxx.Wxxx.TEST,               
             DISP=(NEW,CATLG,DELETE),                         
             UNIT=TSODA,                                       
             SPACE=(TRK,(10,20),RLSE),RETPD=1,                 
             DCB=(LRECL=100,RECFM=FB,BLKSIZE=0)             


verified once the dataset is created like below

Code:
ata Set Name . . . . : Pxxxx.SSR.Rxxxx.Wxxx.TEST                       
                                                                             
eneral Data                           Current Allocation                     
Management class . . : TPS100          Allocated cylinders : 1               
Storage class  . . . : DEFAULT         Allocated extents . : 1               
 Volume serial . . . : MZZW72                                                 
 Device type . . . . : 3390                                                   
Data class . . . . . : NONSTD         Current Utilization                     
 Organization  . . . : PS              Used cylinders  . . : 0               
 Record format . . . : FB              Used extents  . . . : 0               
 Record length . . . : 100                                                   
 Block size  . . . . : 27900                                                 
 1st extent cylinders: 1                                                     
 Secondary cylinders : 3                                                     
 Data set name type  :                 SMS Compressible  :   NO               
                                                                             
 Creation date . . . : 2009/04/02      Referenced date . . : 2009/04/02       
 Expiration date . . : 2009/04/03                                             


how come moved it as expiration date... is this due to internal setups for SMS ACS

Changed jcl with EXPDT
Code:

STEP010  EXEC PGM=IEFBR14                                     
STEPLIB  DD  DSN=XXXX.PROD.LINKLIB,DISP=SHR                     
FILE1    DD  DSN=Pxxxx.SSR.Rxxxx.Wxxx.TEST,               
             DISP=(NEW,CATLG,DELETE),                         
             UNIT=TSODA,                                       
             SPACE=(TRK,(10,20),RLSE),EXPDT=09093,                 
             DCB=(LRECL=100,RECFM=FB,BLKSIZE=0)             


Code:
Data Set Name . . . . : PXXX.RXXXX.WXXX.TEST                     
                                                                           
General Data                           Current Allocation                   
 Management class . . : TPS100          Allocated cylinders : 1             
 Storage class  . . . : DEFAULT         Allocated extents . : 1             
  Volume serial . . . : MZZW74                                             
  Device type . . . . : 3390                                               
 Data class . . . . . : NONSTD         Current Utilization                 
  Organization  . . . : PS              Used cylinders  . . : 0             
  Record format . . . : FB              Used extents  . . . : 0             
  Record length . . . : 100                                                 
  Block size  . . . . : 27900                                               
  1st extent cylinders: 1                                                   
  Secondary cylinders : 3                                                   
  Data set name type  :                 SMS Compressible  :   NO           
                                                                           
  Creation date . . . : 2009/04/02      Referenced date . . : ***None***   
  Expiration date . . : 2009/04/03                                         
                                                               



shown as the same result.. here seems to be no difference
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Apr 02, 2009 8:26 pm
Reply with quote

did You read the manual??

EXPDT and RETPD are the same thing
EXPDT is an absolute thing...
RETPD is the delta relative to the current date

if You created daily a dataset to be kept for 60 days
You wouldn' t want to change every day the jcl stream
to put into the dd the correct EXPDT
Back to top
View user's profile Send private message
TONYTAPES

New User


Joined: 03 Dec 2008
Posts: 4
Location: new jersey

PostPosted: Fri Apr 03, 2009 7:35 pm
Reply with quote

DO NOT PUT A RETPD in your jcl for dasd datasets. Use the catalog to retain that data. Retention periods are a mortal sin
For tape the JCL retppd is usually honered unless the ca1 or RMM admin overrides it. Doubtful, but check
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Apr 04, 2009 2:46 pm
Reply with quote

Quote:
For tape the JCL retppd is usually honered unless the ca1 or RMM admin overrides it. Doubtful, but check

With the coming of SMS managed tapes - don't forget the ACS routines can also be a source of retention management.
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 GDG generation not deleted with RETPD JCL & VSAM 5
No new posts Rewrite a RETPD protected tape file JCL & VSAM 3
No new posts SPUFI Job RETPD JCL & VSAM 4
No new posts Recover a GDG version that whose RETP... JCL & VSAM 1
No new posts Problem with RETPD JCL & VSAM 4
Search our Forums:

Back to Top