IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Importing and Exporting a User Catalog


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
crazyf1

New User


Joined: 05 May 2006
Posts: 26

PostPosted: Tue Aug 08, 2006 2:43 pm
Reply with quote

Hi
I am trying to export a user catalog from an LPAR and import it to another LPAR. However, I am getting an error saying that the catalog is invalid.
Export Code:
Code:

   //EXPORT1 EXEC PGM=IDCAMS,REGION=1024K                     
   //OUTDD1   DD  DSN=TSGP.CHARLIE.CATALOG.SYSTEM.VS2A001,   
   //         DISP=(NEW,CATLG,DELETE),                       
   //         SPACE=(CYL,(19,9)),DCB=(BLKSIZE=20480),         
   //         UNIT=SYSDA,VOL=SER=SYS020                       
   //SYSPRINT DD  SYSOUT=*                                   
   //SYSIN    DD  *                                           
      EXPORT 'CATALOG.SYSTEM.VS2A001' OUTFILE(OUTDD1) TEMPORARY
   

Import Code:
Code:

   //IMPORT  EXEC PGM=IDCAMS,REGION=1024K                           
   //SYSPRINT DD  SYSOUT=*                                           
   //INDD1   DD DSN=TSGP.CHARLIE.CATALOG.SYSTEM.VS2A001,DISP=SHR   
   //FILE1   DD  UNIT=SYSDA,VOL=SER=DW6711,DISP=SHR                 
   //SYSIN    DD  *                                                 
    IMPORT INFILE(INDD1) ODS(CATALOG.SYSTEM.VS2A002) -     
    ALIAS IEMPTY -                                                 
    OBJECTS( -                                                 
                 (CATALOG.SYSTEM.VS2A001  FILE(FILE1) -             
                   VOLUMES(S2A001) ) -                             
                  ) -                                                 
     CAT(CATALOG.MASTER.VS16CAT/PWUPDATE)
   


What should happen is that from LPAR1 the CATALOG.SYSTEM.VS2A001 and then restored to LPAR2 as a different catalog name CATALOG.SYSTEM.VS2A002. Then we will be doing a mergecat of the 2.

Thanks
Regards,
Back to top
View user's profile Send private message
crazyf1

New User


Joined: 05 May 2006
Posts: 26

PostPosted: Tue Aug 08, 2006 2:45 pm
Reply with quote

Also, we tried defining CATALOG.SYSTEM.VS2A002 as well as let the sytem generate it before executing import but got an error also.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts user exit in IBM Infosphere Optim DB2 8
No new posts Running a Job with the Default User ID JCL & VSAM 2
No new posts DASD - non SMS - volser change - VSAM... JCL & VSAM 2
Search our Forums:

Back to Top