On Thu, 19 Feb 2009 21:04:31 -0600, SUBSCRIBE IBM-MAIN Neo <[email protected]> wrote:
>The story is like this: There is a master catalog called: CATALOG.MASTER; >there is a user catalog called: CATALOG.GUSER; and there is a beginner, me. > Then here are some manual references to start with: DFSMS Managing Catalogs http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2C150/ DFSMS Access Method Services for Catalogs http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2I260/ >I want to create another usercat CATALOG.APPUSER under the usercat >CATALOG.GUSER, not the master cat. Why? The only reason to do this would be if CATALOG.GUSER was intended to be used as a master catalog at some point or was the master catalog for another system (or systems) but connected to the driving system (the system you are running from) as a user catalog and you wanted the catalog you are trying to define to be a usercatalog for that other system. > >After checking some reference, according to my humble IQ, I issued: > >//DEFUCAT EXEC PGM=IDCAMS >//SYSPRINT DD SYSOUT=* >//SYSIN DD * > DEFINE USERCATALOG - > (NAME(CATALOG.APPUSER) - > VSAMCATALOG - > CYL(3,1) - > VOLUME(xxxxx)) - > CATALOG(CATALOG.GUSER) >//* > I wonder what reference you saw that had an example like that. VSAM catalogs haven't been used in 20+ years. You should be defining an ICFCATALOG. See the AMS manual I gave a link to. >I got RC=0, but the usercat CATALOG.APPUSER is under CATALOG.MASTER >instead of CATALOG.GUSER. > >Anyone know the reason and hiw to fix it? > In "the old days' you probably would have used a STEPCAT to do that, today you may need an SSA to do something like that. I won't try to explain an SSA since you are a beginner. >If I want to delete CATALOG.APPUSER, is it enough just to issue: > >//DELUCAT EXEC PGM=IDCAMS >//SYSPRINT DD SYSOUT=* >//SYSIN DD * > DELETE CATALOG.APPUSER PURGE USERCATALOG >//* > Since it is empty, yes. Otherwise under normal circumstances you would probably want to also use "RECOVERY" so the data sets in the catalog don't get deleted also. >And when I disconnected CATALOG.APPUSER using: > >//CONUCAT EXEC PGM=IDCAMS >//SYSPRINT DD SYSOUT=* >//SYSIN DD * > EXPORT CATALOG.APPUSER DISCONNECT >// > >then I want to reconnect it: > >//CONUCAT EXEC PGM=IDCAMS >//SYSPRINT DD SYSOUT=* >//SYSIN DD * > IMPORT CONNECT OBJECTS((CATALOG.APPUSER DEVT(3390) VOL(xxxxx))) - > CATALOG(CATALOG.GUSER) >// > >I got a message "duplicate data set name". So what's 'export disconnect' >and 'import connect' is used for anyway? Not sure. It's hard to say what is going on exactly without looking at jobs you did and didn't really run, their output, and LISTCATs of the catalogs involved. > >Any explanation or ref material is appreciated. Thanks in >advance. See the manuals I quoted earlier. It might be a good idea to search the IBM Redbooks site - http://www.redbooks.ibm.com/ for the ABCs of z/OS System Programming (you can just type ABCs in the search bar). You should start with volume 1, but I think catalogs are covered in one of the later volumes. Mark -- Mark Zelden Sr. Software and Systems Architect - z/OS Team Lead Zurich North America / Farmers Insurance Group - ZFUS G-ITO mailto:[email protected] z/OS Systems Programming expert at http://expertanswercenter.techtarget.com/ Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

