View previous topic :: View next topic |
Author |
Message |
kumar26fl Beginner
Joined: 08 Apr 2010 Posts: 14 Topics: 9
|
Posted: Mon Dec 06, 2010 11:24 pm Post subject: Delete all datasets with a given qualifier |
|
|
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 |
|
|
kumar26fl Beginner
Joined: 08 Apr 2010 Posts: 14 Topics: 9
|
|
Back to top |
|
|
Anuj Dhawan Intermediate
Joined: 19 Jul 2007 Posts: 298 Topics: 7 Location: Mumbai,India
|
Posted: Tue Dec 07, 2010 5:14 am Post subject: |
|
|
Great and thanks for posting the link...
have a good one, _________________ Regards,
Anuj |
|
Back to top |
|
|
computer Beginner
Joined: 12 Jun 2007 Posts: 64 Topics: 17 Location: Hyderabad
|
Posted: Tue Dec 07, 2010 8:27 am Post subject: |
|
|
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 |
|
|
warp5 Intermediate
Joined: 02 Dec 2002 Posts: 429 Topics: 18 Location: Germany
|
Posted: Tue Dec 07, 2010 9:10 am Post subject: |
|
|
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 |
|
|
nevilh Beginner
Joined: 11 Aug 2004 Posts: 115 Topics: 0
|
Posted: Sat Dec 18, 2010 9:09 am Post subject: |
|
|
If you have a relatively new system you can use IDCAMS...... by far the easiest way |
|
Back to top |
|
|
IEFBR14 Beginner
Joined: 13 Aug 2008 Posts: 17 Topics: 0 Location: SYS1.LINKLIB
|
Posted: Wed Dec 29, 2010 8:00 pm Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12370 Topics: 75 Location: San Jose
|
Posted: Wed Dec 29, 2010 11:02 pm Post subject: |
|
|
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 |
|
|
rlilley Beginner
Joined: 05 Apr 2010 Posts: 19 Topics: 3
|
Posted: Thu Dec 30, 2010 1:43 pm Post subject: |
|
|
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 |
|
|
expat Intermediate
Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Sat Jan 01, 2011 4:51 am Post subject: |
|
|
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 |
|
|
IEFBR14 Beginner
Joined: 13 Aug 2008 Posts: 17 Topics: 0 Location: SYS1.LINKLIB
|
Posted: Sat Jan 15, 2011 8:24 pm Post subject: |
|
|
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 |
|
|
|
|