How to MASS delete PS files?



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

How to MASS delete PS files?

Postby Thilak Pandian » Fri Sep 14, 2012 5:01 pm

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
Thilak Pandian
 
Posts: 3
Joined: Fri Sep 14, 2012 4:56 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to MASS delete PS files?

Postby NicC » Fri Sep 14, 2012 5:33 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: How to MASS delete PS files?

Postby enrico-sorichetti » Fri Sep 14, 2012 5:41 pm

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
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: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: How to MASS delete PS files?

Postby Thilak Pandian » Fri Sep 14, 2012 6:08 pm

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
Thilak Pandian
 
Posts: 3
Joined: Fri Sep 14, 2012 4:56 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to MASS delete PS files?

Postby enrico-sorichetti » Fri Sep 14, 2012 6:23 pm

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:
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: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: How to MASS delete PS files?

Postby Thilak Pandian » Fri Sep 21, 2012 4:17 pm

Thanks Enrico . Its working good !
Thilak Pandian
 
Posts: 3
Joined: Fri Sep 14, 2012 4:56 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post