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.

I want to create another usercat CATALOG.APPUSER under the usercat 
CATALOG.GUSER, not the master cat.

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 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?

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 
//*      

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?

Any explanation or ref material is appreciated. Thanks in 
advance.                                                                       
                                                     

----------------------------------------------------------------------
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

Reply via email to