View previous topic :: View next topic
|
Author |
Message |
nkothako
Active User
Joined: 26 Nov 2008 Posts: 125 Location: chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Nope. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
What did the JCL Language Reference and User Guide (link at the top of the page) tell you? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
no ( as a general point )
when the retention period expires the dataset will be treated as a dataset without expiration date |
|
Back to top |
|
|
nkothako
Active User
Joined: 26 Nov 2008 Posts: 125 Location: chennai
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
that' s exactly what we have said...
what is that it is not clear ? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
nkothako
Active User
Joined: 26 Nov 2008 Posts: 125 Location: chennai
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
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 |
|
|
TONYTAPES
New User
Joined: 03 Dec 2008 Posts: 4 Location: new jersey
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
|