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
 

 

If RETPD=45 is specified

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: If RETPD=45 is specified
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: 8593
Location: Back in jolly old England

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

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

Global Moderator


Joined: 06 Jun 2008
Posts: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Thu Apr 02, 2009 5:31 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Thu Apr 02, 2009 5:35 pm    Post subject: Reply to: If RETPD=45 is specified
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    Post subject: If RETPD=45 is specified
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Thu Apr 02, 2009 5:43 pm    Post subject: Reply to: If RETPD=45 is specified
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: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 02, 2009 6:07 pm    Post subject:
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    Post subject: If RETPD=45 is specified
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Thu Apr 02, 2009 8:26 pm    Post subject: Reply to: If RETPD=45 is specified
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Sat Apr 04, 2009 2:46 pm    Post subject:
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    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 GDG generation not deleted with RETPD Khwairakpam Raju Singh JCL & VSAM 5 Thu Aug 04, 2011 5:59 pm
No new posts Rewrite a RETPD protected tape file haimzeevi JCL & VSAM 3 Tue Jan 18, 2011 5:41 pm
No new posts SPUFI Job RETPD expat JCL & VSAM 4 Tue Jul 15, 2008 7:14 pm
No new posts Recover a GDG version that whose RETP... dhanashreeakhade JCL & VSAM 1 Fri Jul 04, 2008 5:43 pm
No new posts Problem with RETPD Prajesh_v_p JCL & VSAM 4 Wed Apr 02, 2008 8:07 pm


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