View previous topic :: View next topic
|
Author |
Message |
upendrasri
Active User
Joined: 28 Sep 2017 Posts: 121 Location: India
|
|
|
|
Hi,
In my environment we have some data sets which will be deleted after 45 days of non usage as per management class.
But even after 45 days few data sets are not deleted and they are not referred or used more than 45days.
As per management class data sets will not be deleted in case if their retention period mentioned more than 45 while created those data sets.
These data sets were created by various application developers.
Is there anyway to know the retention period of a Vsam dataset?
Thanks! |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
Retention period is not a data set attribute. The retention period specified in JCL or the IDCAMS DEFINE CLUSTER command is immediately converted to an expiration date that subsequently becomes a data set or cluster attribute.
This cluster does not have an expiration date.
Code: |
LISTCAT ALL ENT(XXXXXX.UCHECK.DB)
CLUSTER ------- XXXXXX.UCHECK.DB
IN-CAT --- redacted
HISTORY
DATASET-OWNER-----(NULL) CREATION--------2015.197
RELEASE----------------2 EXPIRATION------0000.000 |
It is easier to obtain the expiration date for a VSAM cluster than a non-VSAM data set.
As we have no knowledge of the process that is supposed to delete expired VSAM clusters we cannot speculate about the reason these data sets are not being deleted.
This is annoying. Last ref date does not appear to be a VSAM attribute. though you can use the last ref date of the data set component of the data area of the of the data set. |
|
Back to top |
|
|
upendrasri
Active User
Joined: 28 Sep 2017 Posts: 121 Location: India
|
|
|
|
Hi Steve,
Thanks for your clarification. Actually in our environment some of the data sets are not deleted even though their non usage days matching with their Management class
Ex :
Vsam dataset : REPT.PPPP.TST18221
Created on : 2005/03/19
Last referred on : 2018/08/09
Code: |
CLUSTER ------- REPT.PPPP.TST18221
IN-CAT --- USER.TEST.CATALOG
HISTORY
DATASET-OWNER-----(NULL) CREATION--------2005.078
RELEASE----------------2 EXPIRATION------0000.000
SMSDATA
STORAGECLASS ---STANDARD MANAGEMENTCLASS-TSTFILES
DATACLASS ---------KEYED LBACKUP ---0000.000.0000 |
TSTFILES Management class attributes as below -
Code: |
Expiration Attributes
Expire after Days Non-usage . : 35
Expire after Date/Days . . . . : NOLIMIT
Retention Limit . . . . . . . : 0 |
Dataset suppose to be deleted after 35 days of Non-usage.. But that dint happen..
Any suggestions?
Thanks. |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
steve-myers wrote: |
...As we have no knowledge of the process that is supposed to delete expired VSAM clusters we cannot speculate about the reason these data sets are not being deleted. ... |
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Go see the exact same post that you put into another area of the forum.
This version is locked. |
|
Back to top |
|
|
|