Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in

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

New User

Joined: 08 Oct 2007
Posts: 38
Location: Delhi

PostPosted: Sat Jan 19, 2013 12:27 pm    Post subject: VSAM CAT RC IS 50 - IGG0CLE4-88
Reply with quote

Hi Forum,

I tried to rename a VSAM file using the IDCAMS ALTER command but to my surprise when I renamed the CLUSTER file, it vanished (I did change the HLQ of the dataset, I think it has to do something with this). I then tried to rename the DATA and INDEX part as well, but they too are now uncataloged.

I can see the DATA and INDEX part, when I put in the volser but when I try to do a DEFINE RECATALOG for the VSAM file, I get the following message:-


I have read through the forum and tried some hit and trials but nothing seem to have hit the nail in the head.

So I was just wondering if the VSAM file is recoverable or not?

Thanks in advance,
Back to top
View user's profile Send private message


Active User

Joined: 01 Sep 2006
Posts: 262

PostPosted: Sun Jan 20, 2013 6:25 pm    Post subject:
Reply with quote

You can only change the HLQ if the new HLQ is cataloged in the same USERCAT as the original HLQ. If the new HLQ cataloged in a different USERCAT you will exprience the phenomenum you are now seeing.
Basically you cannot rename a VSAM dataset and change the HLQ unless both HLQ's are in the same USERCAT.
Back to top
View user's profile Send private message
Pete Wilson

Active User

Joined: 31 Dec 2009
Posts: 471
Location: London

PostPosted: Fri Jan 25, 2013 10:08 am    Post subject:
Reply with quote

If you have renamed the Cluster and components and they have disappeared that is probably because the high level qualifier of the new name has an alias pointing to a different usercatalog. If you did a LISTCAT of your dataset specifying the CATALOG parameter with the name of the usercatalog the original Cluster name was in you would see the cluster there with the new name.

What you need to do is REPRO MERGECAT the entry for the new cluster name from the catalog it is in now to the catalog where the new hlq alias points to and it will magically reappear when you do a 3.4.

Alternatively, you can rename the Cluster and components back to the original names (you'll have to specify the CATALOG parameter point to the original catalog) in which case they'll also reappear on a 3.4 Once you have them back you can then use something like DFDSS (pgm=ADRDSSU) to DUMP the file and then do a RESTORE with RENAMEU to the new name which will properly catalog it into the new catalog for you.

PS: You need to understand what happens when you search for or create a dataset. The system will first look in the Mastercatalog to see if there is a Usercatalog ALIAS that matches the dataset name (this is usually the HLQ but can be up to the 3-4LQ). If there is an ALIAS, it will RELATE to a particular Usercatalog, and the system will then go to that Usercatalog to find or create the catalog entry for the dataset, which will tell the system what volume(s) it is on.
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 Modify the shareoptions of VSAM in De... chavinash2004 CLIST & REXX 21 Wed Feb 26, 2020 6:28 pm
No new posts Rexx to create VSAM define statements Dinesh Mani CLIST & REXX 10 Fri Nov 29, 2019 9:26 pm
No new posts REXX VSAM Harold Barnes CLIST & REXX 3 Sat Oct 05, 2019 2:38 pm
No new posts CICS VSAM file max volumes socker_dad JCL & VSAM 4 Tue Aug 20, 2019 1:28 am
No new posts Unable to delete dataset - VSAM datas... netcrawler JCL & VSAM 20 Fri Jul 26, 2019 2:06 pm

Back to Top
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us