Page 1 of 1

How to Delete Files by expiration Date?

PostPosted: Fri Dec 10, 2021 4:46 pm
by jcdm
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.

Re: How to Delete Files by expiration Date?

PostPosted: Fri Dec 10, 2021 5:23 pm
by enrico-sorichetti
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