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 

How to delete vsam file using tso rexx commands?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
vjkumk
Beginner


Joined: 28 Sep 2005
Posts: 98
Topics: 33

PostPosted: Thu Dec 15, 2005 9:28 am    Post subject: How to delete vsam file using tso rexx commands? Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Dec 15, 2005 9:52 am    Post subject: Reply with quote

vjkumk,


Please search before posting. Check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=3955&highlight=adrdssu+delete

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vjkumk
Beginner


Joined: 28 Sep 2005
Posts: 98
Topics: 33

PostPosted: Thu Dec 15, 2005 9:59 am    Post subject: Reply with quote

the link you provide deals with pds and ps , the same applies for VSAM datasets?
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Dec 15, 2005 10:08 am    Post subject: Reply with quote

The TSO (IDCAMS) DELETE command works for VSAM also.
Back to top
View user's profile Send private message
vjkumk
Beginner


Joined: 28 Sep 2005
Posts: 98
Topics: 33

PostPosted: Fri Jan 06, 2006 12:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF 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