I'd like to use a DASD file (not tape because the backup is very small et it's every day. So i would like to save tape file by using DASD File).
With the tape fil, we used RETPD parameters, and CA1 managed it.
But with DASD file, CA1 can not managed the file beaucause it's not tape.
Si i have to create a daily JCL (by TWS) to delete the DASD File whne they will be expired.
I have two options :
1) Using IDCAMS with mask option
DELETE YYY*.Y*.D*.T*.D*.A*
By running it every day, it will delete expired dataset btu not the unexpired one
i will have theis message for the unexpired one :
IDC3023I UNEXPIRED PURGE DATE
IDC3009I ** VSAM CATALOG RETURN CODE IS 84 - REASON CODE IS IGG0CLFM-0
But i will have many error messages like that. And surly, there is a IDCAMS limit for the number of file to delete....
2) The other option is Using ADRDSSU to delete file
By using Create date.
But to do this i have to put the Retpd parameters in the DSname file for example, if RETPD=45,
my file will be called :
YYY2018.YZAE.D2019.T1101.D204.RET45
to delete those file, i will use
BY((CREDT,LE,*,-45)
I would like to have your advices about using the fisrt or second way to make it.
Thnk's for your help (and sorry for my english...)