IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to delete a VSAM file which is not cataloged


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mighty

New User


Joined: 21 May 2008
Posts: 26
Location: chennai

PostPosted: Thu May 22, 2008 4:56 pm
Reply with quote

How to delete a VSAM file which is not cataloged ?
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Thu May 22, 2008 5:36 pm
Reply with quote

Please use VOL-SER to find & delete it out.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu May 22, 2008 6:44 pm
Reply with quote

IDCAMS DELETE VVR
Back to top
View user's profile Send private message
mighty

New User


Joined: 21 May 2008
Posts: 26
Location: chennai

PostPosted: Thu May 22, 2008 11:03 pm
Reply with quote

mighty wrote:
How to delete a VSAM file which is not cataloged ?


Actually,this question was about a KSDS file.

Actual KSDS file is on a volume say for eg: xxxxxx,
Only the data component of the KSDS file is on a different volume say yyyyyy and is uncataloged.

How do I get rid of the duplicate one on yyyyyy. I wanted to try the following jcl:

//DD1 DD VOL=SER=DV000E,DISP=SHR,UNIT=DISK
//SYSIN DD *
DELETE **.KSDS.DATA -
VVR FILE(DD1) -
CATALOG(CATALOG.ICFUSER.USER4)

Please let me know if this works. What do I do incase of 'Duplicate Dataset name' failures in this case.Please advise.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Fri May 23, 2008 1:04 am
Reply with quote

Your JCL looks like mine, if yyyyyy is volume DV000E, except I specify the full component name (no asterisks).
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts DELETE SPUFI DB2 1
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts DSNTIAUL driven delete IBM Tools 0
Search our Forums:

Back to Top