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

VSAM CAT RC IS 50 - IGG0CLE4-88


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

New User


Joined: 08 Oct 2007
Posts: 38
Location: Delhi

PostPosted: Sat Jan 19, 2013 12:27 pm
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:-

DC3014I CATALOG
ERROR
DC3009I ** VSAM CATALOG RETURN CODE IS 50 - REASON CODE IS
IGG0CLE4-88
DC3003I FUNCTION TERMINATED. CONDITION CODE IS
12

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,
Kush
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Sun Jan 20, 2013 6:25 pm
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 Member


Joined: 31 Dec 2009
Posts: 581
Location: London

PostPosted: Fri Jan 25, 2013 10:08 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts CVDA value for RRDS VSAM dataset. CICS 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Open VSAM File in IMS DC Region - DFS... IMS DB/DC 0
Search our Forums:

Back to Top