MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Delete all datasets with a given qualifier

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
kumar26fl
Beginner


Joined: 08 Apr 2010
Posts: 14
Topics: 9

PostPosted: Mon Dec 06, 2010 11:24 pm    Post subject: Delete all datasets with a given qualifier Reply with quote

Hello,

I would like to delete all datasets that are under the qualifier:

TX876K1.**

Can anyone please share a sample JCL step for this

Thanks
Back to top
View user's profile Send private message
kumar26fl
Beginner


Joined: 08 Apr 2010
Posts: 14
Topics: 9

PostPosted: Mon Dec 06, 2010 11:31 pm    Post subject: Reply with quote

I think I got the answer from old posts in this forum.

http://www.mvsforums.com/helpboards/viewtopic.php?t=11175&highlight=delete+datasets+qualifier


Thanks Mvsforums and the team.
Back to top
View user's profile Send private message
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Tue Dec 07, 2010 5:14 am    Post subject: Reply with quote

Great and thanks for posting the link...Smile

have a good one,
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
computer
Beginner


Joined: 12 Jun 2007
Posts: 64
Topics: 17
Location: Hyderabad

PostPosted: Tue Dec 07, 2010 8:27 am    Post subject: Reply with quote

Hi All,

Just a thought....

I had a look into the solutions achieved by JCL utility - ADRDSSU and with REXX.

Which would be best choice.

Thanks,
Computer
Back to top
View user's profile Send private message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Tue Dec 07, 2010 9:10 am    Post subject: Reply with quote

I would say ADRDSSU, it is an IBM utility and all you need to do is change parameters. It is fast on top of it.
Back to top
View user's profile Send private message Visit poster's website
nevilh
Beginner


Joined: 11 Aug 2004
Posts: 115
Topics: 0

PostPosted: Sat Dec 18, 2010 9:09 am    Post subject: Reply with quote

If you have a relatively new system you can use IDCAMS...... by far the easiest way
Back to top
View user's profile Send private message
IEFBR14
Beginner


Joined: 13 Aug 2008
Posts: 17
Topics: 0
Location: SYS1.LINKLIB

PostPosted: Wed Dec 29, 2010 8:00 pm    Post subject: Reply with quote

warp5 wrote:
I would say ADRDSSU, it is an IBM utility and all you need to do is change parameters. It is fast on top of it.


..If you have a licence

Rexx, AMS are free - this is something you will use again and again
If your shop doesnt have a generic utility - write (and test ) one
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Wed Dec 29, 2010 11:02 pm    Post subject: Reply with quote

IEFBR14 wrote:
warp5 wrote:
I would say ADRDSSU, it is an IBM utility and all you need to do is change parameters. It is fast on top of it.


..If you have a licence

Rexx, AMS are free - this is something you will use again and again
If your shop doesnt have a generic utility - write (and test ) one


Why do you need REXX here? ADRDSSU is a free utility from IBM which does exactly what OP needs.

Also as nevilh pointed out, IDCAMS ((z/OS V1R11 and higher ) can now delete with wild cards.

Why re-invent the wheel when there are free utilities available?

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
rlilley
Beginner


Joined: 05 Apr 2010
Posts: 19
Topics: 3

PostPosted: Thu Dec 30, 2010 1:43 pm    Post subject: Reply with quote

I would have a look at the XDELETE utility written by Gilbert Saint-Flour. It is available as a download or the CBT tape on file 183.

Here is the link to the download: http://gsf-soft.com/Freeware/XDELETE.shtml
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Sat Jan 01, 2011 4:51 am    Post subject: Reply with quote

Only two little points from me

ADRDSSU will not deal with tape or migrated datasets, whereas IDCAMS will

Not every site allows the download and install of freeware products.

For a REXX based solution I would recommend using the code from SYS1.SAMPLIB IGGCSIRX, although in its vanilla form this will only list datasets. With a minimal tweaking this can easily be amended to delete datasets too. It has full wildcard functionality already built in.
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
IEFBR14
Beginner


Joined: 13 Aug 2008
Posts: 17
Topics: 0
Location: SYS1.LINKLIB

PostPosted: Sat Jan 15, 2011 8:24 pm    Post subject: Reply with quote

kolusu wrote:


Why do you need REXX here? ADRDSSU is a free utility from IBM which does exactly what OP needs.

Also as nevilh pointed out, IDCAMS ((z/OS V1R11 and higher ) can now delete with wild cards.

Why re-invent the wheel when there are free utilities available?

Kolusu


Sorry I didnt appreciate ADRDSSU was free now
I know of the wild carding abilities of IDCAMS but they dont always give you what you want.

As I tried to point out a good delete utility is something you will use again and again (and wasnt aware of the license non-issue) , as to re-inventing the wheel , maybe it is more like adding tyres and brakes to ease the ride ... white list , black lists +days from creation , last ref ...if on pack XXXXXX ..what ever floats your boat
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group