Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

VSAM Data and Index part exist without Cluster!

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
nartcr

New User


Joined: 06 Jun 2007
Posts: 78
Location: anada

PostPosted: Thu Nov 12, 2009 11:03 pm    Post subject: VSAM Data and Index part exist without Cluster!
Reply with quote

Hi all -

I have a situation like this.

I have a VSAM dataset this way.

AAA.BBB.CCC <<< Cluster
AAA.BBB.CCC.DATA <<< Data part
AAA.BBB.CCC.INDEX <<<Index part

Now someone deleted the cluster without deleting the Data and Index part. I am not sure how they did.

All i can see now is DATA and INDEX part. Whenever i try to delete the VSAM file through Fileaid - it says 'Cluster not existing'.

Someone please let me know how i can delete this data and index part ? Is this something to do with VTOC ?
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7996
Location: Bellevue, IA

PostPosted: Thu Nov 12, 2009 11:40 pm    Post subject:
Reply with quote

Something I've had to do -- not much, but it does happen.

You may need to contact your site support group for assistance with some of the parameters required:
Code:
//SYS1 EXEC PGM=IDCAMS
//DD1 DD UNIT=SYSDA,VOL=SER=<volser>,DISP=OLD
//SYSPRINT DD SYSOUT=*
//SYSIN  DD *
 DELETE AAA.BBB.CCC.DATA  VVR FILE(DD1) -
        CATALOG(user.catalog.dataset.was.in)

 DELETE AAA.BBB.CCC.INDEX VVR FILE(DD1) -
        CATALOG(user.catalog.dataset.was.in)
and if the DATA and INDEX components are on different packs, you'll need a different DD reference for each instead of both being on one as in this example.
Back to top
View user's profile Send private message
nartcr

New User


Joined: 06 Jun 2007
Posts: 78
Location: anada

PostPosted: Fri Nov 13, 2009 12:00 am    Post subject:
Reply with quote

Ok - Thanks - I just gave a try with VTOC options in file aid and it worked. With the base and index part - i created a new cluster AAA.BBB.DDD and was able to link this cluster to AAA.BBB.CCC.DATA and AAA.BBB.CCC.INDEX. I deleted the new cluster and it worked perfect! Thanks for all your responses.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us