View previous topic :: View next topic |
Author |
Message |
vjkumk Beginner
Joined: 28 Sep 2005 Posts: 98 Topics: 33
|
Posted: Thu Dec 15, 2005 9:28 am Post subject: How to delete vsam file using tso rexx commands? |
|
|
i have to delete unwanted vsam datasets.It is around 80,000 vsam datasets.
its format is like this
vsam01.08.test100.cluster.
vsam01.08.test101.cluster.
........
......
vsam01.08.test102.cluster.
so only test*** this part changes.by jcl we can use idcams to delete it.But is any other way to delete these clusters.what i like to do is
just increment the counter from 100 to the max and substitute in test*** .So how to delete the VSAM file using tso rexx command. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
vjkumk Beginner
Joined: 28 Sep 2005 Posts: 98 Topics: 33
|
Posted: Thu Dec 15, 2005 9:59 am Post subject: |
|
|
the link you provide deals with pds and ps , the same applies for VSAM datasets? |
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Thu Dec 15, 2005 10:08 am Post subject: |
|
|
The TSO (IDCAMS) DELETE command works for VSAM also. |
|
Back to top |
|
|
vjkumk Beginner
Joined: 28 Sep 2005 Posts: 98 Topics: 33
|
Posted: Fri Jan 06, 2006 12:25 pm Post subject: |
|
|
i tried with the tso Command as follows and it worked fine
"delete vsamfilename cluster purge "
here Purge is used to delete a vsam cluster,which has not reached its expiration date.
vj |
|
Back to top |
|
|
|
|