Delete all datasets with a given qualifier
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> Job Control Language(JCL)

#1: Delete all datasets with a given qualifier Author: kumar26fl PostPosted: Mon Dec 06, 2010 11:24 pm
    —
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

#2:  Author: kumar26fl PostPosted: Mon Dec 06, 2010 11:31 pm
    —
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.

#3:  Author: Anuj DhawanLocation: Mumbai,India PostPosted: Tue Dec 07, 2010 5:14 am
    —
Great and thanks for posting the link...Smile

have a good one,

#4:  Author: computerLocation: Hyderabad PostPosted: Tue Dec 07, 2010 8:27 am
    —
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

#5:  Author: warp5Location: Germany PostPosted: Tue Dec 07, 2010 9:10 am
    —
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.

#6:  Author: nevilh PostPosted: Sat Dec 18, 2010 9:09 am
    —
If you have a relatively new system you can use IDCAMS...... by far the easiest way

#7:  Author: IEFBR14Location: SYS1.LINKLIB PostPosted: Wed Dec 29, 2010 8:00 pm
    —
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

#8:  Author: kolusuLocation: San Jose PostPosted: Wed Dec 29, 2010 11:02 pm
    —
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

#9:  Author: rlilley PostPosted: Thu Dec 30, 2010 1:43 pm
    —
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

#10:  Author: expatLocation: Welsh Wales PostPosted: Sat Jan 01, 2011 4:51 am
    —
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.

#11:  Author: IEFBR14Location: SYS1.LINKLIB PostPosted: Sat Jan 15, 2011 8:24 pm
    —
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



MVSFORUMS.com -> Job Control Language(JCL)


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group