The sample below will do the job.  As others have mentioned, products like
T-REX can perform this task exponentially faster.  It would also offer you a
SIMULATE feature to verify what entries would be moved.

 

If you have any questions on the process, or would like to bounce ideas off
me, feel free to call anytime.

 

Larry Crilley

Dino-Software Corporation

800.480.DINO

412.366.3566

www.dino-software.com

 

-----Original Message-----

From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf
Of Richard L Peurifoy

Sent: Wednesday, February 29, 2012 12:06 PM

To: [email protected]

Subject: Re: User datasets wrongly catalogued under Master Catalogue

 

On 2/29/2012 6:43 AM, Martin, Larry D wrote:

> You can also use IDCAMS MERGECAT to move the catalog entries and then
define the ALIAS(s).

 

 

Here is a sample to do it.

 

//MOVCAT   JOB

//*

//PRINT   EXEC PGM=IDCAMS

//*

//SYSPRINT  DD SYSOUT=A

//SYSIN     DD *

  REPRO -

         LEVEL(@ ) -

         INDATASET(CATALOG.MSTCAT) -

         OUTDATASET(CATALOG.USRCAT) -

         MERGECAT

  DEFINE ALIAS(NAME(@ ) -

         RELATE(CATALOG.USRCAT)) -

         CAT(CATALOG.MSTCAT)

 

 

--

Richard

 

----------------------------------------------------------------------

For IBM-MAIN subscribe / signoff / archive access instructions, send email
to [email protected] with the message: INFO IBM-MAIN

 


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to