How to Delete Files by expiration Date?



Help for IBM's record-oriented filesystem VSAM, ESDS, KSDS, RRDS, LDS and Storage management Subsystems

How to Delete Files by expiration Date?

Postby jcdm » Fri Dec 10, 2021 4:46 pm

Hello team,

I am new on this and I am practicing on a Lab enviroment.

I create some routines and rules to delete files when them was Expire, but I think that was not enough.

I also define on
ISMF PRIMARY OPTION MENU

Management Class:
Expiration Attributes
Expire after Days Non-usage . . 15 (1 to 93000 or NOLIMIT)
Expire after Date/Days . . . . . 15 (0 to 93000, yyyy/mm/dd or
NOLIMIT)

Retention Limit . . . . . . . . . 15 (0 to 93000 or NOLIMIT)

Storage Class ---> for my volumes
Data Class ---> Retpd or Expdt . . . . . 15

I want to all files that are into my routines was deleted when be expired.

I read some manuals, but I dunno what i am losing.

Best Regards.
jcdm
 
Posts: 20
Joined: Fri Dec 10, 2021 4:39 pm
Has thanked: 1 time
Been thanked: 3 times

Re: How to Delete Files by expiration Date?

Postby enrico-sorichetti » Fri Dec 10, 2021 5:23 pm

but I think that was not enough.


You must have DFSMSHSM active an properly configured

see ....
https://www.ibm.com/docs/en/zos/2.1.0?t ... tion-limit
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times


Return to VSAM/SMS

 


  • Related topics
    Replies
    Views
    Last post