Here's a scrubbed-up version of the last MERGECAT I ran. DD CATVOL is in the JCL but not referenced in IDCAMS control statements. As for the order of MERGECAT and DEF ALIAS, I put them in that order. Can't say if that's required.
Note: in the original incarnation of MERGECAT, you were not allowed to REPRO out of a master catalog for safety reasons. That restriction was relaxed eons ago. In any case desk-check this very well to avoid utter catastrophe. ;-( //STEP1 EXEC PGM=IDCAMS,REGION=32M //CATVOL DD DISP=OLD,DSN=source-catalog //SYSPRINT DD SYSOUT=* //SYSIN DD * REPRO IDS(source-catalog) MERGECAT - LVL(hlq-to-move) - ODS(target-catalog) IF LASTCC = 0 THEN DO DEL hlq-to-move ALIAS /* cleanup just in case */ DEF ALIAS (NAME(hlq-to-move) REL(target-catalog) ) END . . J.O.Skip Robinson Southern California Edison Company Electric Dragon Team Paddler SHARE MVS Program Co-Manager 323-715-0595 Mobile 626-543-6132 Office ⇐=== NEW robin...@sce.com -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of esmie moo Sent: Friday, September 22, 2017 10:32 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: (External):Re: MERGECAT QUESTION Thanks Todd, I looked at a few examples (IBM REDBOOK) and they have DD1 statements. Do I need to use them as well? On Friday, September 22, 2017 11:27:09 AM, Burrell, Todd <todd_burr...@csx.com> wrote: I usually do the MERGECAT first and then define the alias. I believe the ALIAS DEFINE will fail if there are entries in the MCAT that match it... -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of esmie moo Sent: Friday, September 22, 2017 11:16 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: MERGECAT QUESTION Gentle Readers, We have about hundreds of user dsns which are cataloged in the MCAT because the alias for the users were not defined.My question is the sequence I should follow. For example do I define the ALIAS and then perform the MERGECAT? or I perform the MERGECAT and then define the ALIAS?I don't have a test system in which I can try it out. Below is my jcl to run the MERGECAT:/* //STEP1 EXEC PGM=IDCAMS,REGION=2048K,TIME=1440 //DD1 DD VOL=SER=MCAT03,UNIT=SYSALLDA,DISP=OLD// DD VOL=SER=TST001,UNIT=SYSALLDA,DISP=OLD//SYSPRINT DD SYSOUT=* //SYSIN DD * REPRO - INDATASET(TSUT3.MCAT) - OUTDATASET(USERCAT.APPLIC) - LEVEL(CTPRT17) - MERGECAT - FILE(DD1) /* // Thanks. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN This email transmission and any accompanying attachments may contain CSX privileged and confidential information intended only for the use of the intended addressee. Any dissemination, distribution, copying or action taken in reliance on the contents of this email by anyone other than the intended recipient is strictly prohibited. If you have received this email in error please immediately delete it and notify sender at the above CSX email address. Sender and CSX accept no liability for any damage caused directly or indirectly by receipt of this email. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN