Page 1 of 1

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

PostPosted: Fri Apr 07, 2023 1:33 pm
by gselvasridharan
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!

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

PostPosted: Fri Apr 07, 2023 8:47 pm
by willy jensen
Just do a REPRO MERGECAT.

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

PostPosted: Fri Apr 07, 2023 8:53 pm
by willy jensen
Something like this should work:

 REPRO MERGECAT -            
   INDATASET( CATALOG.MVS1) -
   OUTDATASET(CATALOG.MVS2) -
   ENT(MY.DATA.SET)          

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

PostPosted: Mon Apr 10, 2023 12:58 pm
by gselvasridharan
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!