Page 1 of 1

How to MASS delete PS files?

PostPosted: Fri Sep 14, 2012 5:01 pm
by Thilak Pandian
Hi,

Can anyone help with deleting the PS files. say a 1000 ps files are there and you need to delete it by giving required qualifier like (USERID.**.JCL).

Thanks
Thilak

Re: How to MASS delete PS files?

PostPosted: Fri Sep 14, 2012 5:33 pm
by NicC
There are many topics on deleting files in the forum. Have you looked to see if your problem has already been resolved?

As a short-cut read up on ADRDSSU and IDCAMS or even writing a little Rexx to generate JCL for an IEFBR14 or individual control cards for IDCAMS.

Re: How to MASS delete PS files?

PostPosted: Fri Sep 14, 2012 5:41 pm
by enrico-sorichetti
see here
clist-rexx/topic8103.html

the DFDSS snippet posted filters also on the reference data
just use the INCLUDE/OMIT clause to filter on the DSNAME pattern

Re: How to MASS delete PS files?

PostPosted: Fri Sep 14, 2012 6:08 pm
by Thilak Pandian
Hi niC & enrico,

Seen other examples and tried, while deleting only command ENRICO.** -is working out for non migrated ,cant we give command like (ENRICO.**.JCL) ?

It is getting deleted only for the records that are not migrated. So to recall the migrated ones i used ( hrecall 'userid.*' ) am getting message no dsname found.

Please help me get this resolved

Thanks,
Thilak

Re: How to MASS delete PS files?

PostPosted: Fri Sep 14, 2012 6:23 pm
by enrico-sorichetti
look at the dfdss manuals on how to specify the filter
the links are in the post I referred to previously

Please help me get this resolved

do not whine
aren' t we helping You already ? :evil:

Re: How to MASS delete PS files?

PostPosted: Fri Sep 21, 2012 4:17 pm
by Thilak Pandian
Thanks Enrico . Its working good !