View previous topic :: View next topic |
Author |
Message |
raveendra_ibm Beginner
Joined: 02 Apr 2006 Posts: 32 Topics: 10
|
Posted: Mon Apr 03, 2006 11:30 pm Post subject: Deleting multiple PDSs with a single command |
|
|
Hi All,
Is there a way out to delete multiple PDS or PS using a single command. Something similar to this :
I want to delete following PDSs' (along with the members in it)
MYPDS.TEST.COB
MYPDS.TEST.JCL
MYPDS.TEST.TST
MYPDS.TEST.LOAD
MYPDS.TEST.OBJ
using MYPDS.TEST.* with a single command, instead of deleting each one of them individually.
Thanks and Regards,
Raveendra. |
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Tue Apr 04, 2006 12:35 am Post subject: |
|
|
You can probably write a small REXX, but there is no command to delete a bunch of datasets together.
Thanks,
Phantom |
|
Back to top |
|
 |
raveendra_ibm Beginner
Joined: 02 Apr 2006 Posts: 32 Topics: 10
|
Posted: Tue Apr 04, 2006 12:54 am Post subject: |
|
|
Hi Phantom,
Thanks for your prompt reply. I am new to REXX and probably its going to take me sometime for writing a REXX prog.
Thanks once again,
Raveendra. |
|
Back to top |
|
 |
nevilh Beginner
Joined: 11 Aug 2004 Posts: 115 Topics: 0
|
Posted: Tue Apr 04, 2006 4:22 am Post subject: |
|
|
Use IDCAMS command
DELETE MYPDS.TEST.* |
|
Back to top |
|
 |
|
|