Recatalog Error:Moving a dataset entry from one cat to other



Help for IBM's record-oriented filesystem VSAM, ESDS, KSDS, RRDS, LDS and Storage management Subsystems

Recatalog Error:Moving a dataset entry from one cat to other

Postby gselvasridharan » Fri Apr 07, 2023 1:33 pm

Hi,

I have a situation where a dataset A.B.C is present in UCAT1 with alias defined 'A' and another UCAT2 with alias 'A.B' is defined. Diagnose throws error for dataset A.B.C to be present in another catalog.

So, I want to move the dataset A.B.C entry from UCAT1 to UCAT2. I tried to do IDCAMS delete NOSCRATCH, change NVR to UCAT2 in VVDS using ALTER(Catalog recovery program) and then IDCAMS DEFINE with RECATALOG.

But RECATALOG throws the below error.

IDC3014I CATALOG ERROR
IDC3009I ** VSAM CATALOG RETURN CODE IS 132 - REASON CODE IS IGG0CLEJ-18
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12

Even after changing VVDS to correct UCAT, I don't know why Recatalog throws an error.

I heard IDCAMS REPRO with MERGECAT can help me move dataset entries between Catalogs.

Kindly help me in rectifying the above error and tell me if there is any other way to achieve the same.

Thanks in advance!
gselvasridharan
 
Posts: 3
Joined: Fri Apr 07, 2023 1:19 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Recatalog Error:Moving a dataset entry from one cat to o

Postby willy jensen » Fri Apr 07, 2023 8:47 pm

Just do a REPRO MERGECAT.
willy jensen
 
Posts: 455
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 69 times

Re: Recatalog Error:Moving a dataset entry from one cat to o

Postby willy jensen » Fri Apr 07, 2023 8:53 pm

Something like this should work:

 REPRO MERGECAT -            
   INDATASET( CATALOG.MVS1) -
   OUTDATASET(CATALOG.MVS2) -
   ENT(MY.DATA.SET)          
willy jensen
 
Posts: 455
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 69 times

Re: Recatalog Error:Moving a dataset entry from one cat to o

Postby gselvasridharan » Mon Apr 10, 2023 12:58 pm

Hi,

I know REPRO with MERGECAT would work. But I need to know with correct NVR pointing to UCAT2, why Recatalog throws catalog error. I want know if this can work with Define Recatalog option.

Thanks!
gselvasridharan
 
Posts: 3
Joined: Fri Apr 07, 2023 1:19 pm
Has thanked: 0 time
Been thanked: 0 time


Return to VSAM/SMS

 


  • Related topics
    Replies
    Views
    Last post