09.07.2015 Views

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

IMPORTImport a Catalog: Example 2In this example, a catalog, USERCAT4, that was previously exported, is imported.(See the EXPORT example, “Export a Catalog: Example 1” on page 253.) Theoriginal copy of USERCAT4 is replaced with the imported copy, from the portablefile copy in CATBACK. <strong>Access</strong> method services finds and deletes the duplicatename, USERCAT4. Any aliases in the master catalog <strong>for</strong> USERCAT4 are preserved.(A duplicate name exists because the catalog was exported with the TEMPORARYattribute.) <strong>Access</strong> method services then redefines USERCAT4, using the catalogin<strong>for</strong>mation from the portable file, CATBACK. USERCAT4 is locked to preventaccess to anyone except authorized recovery personnel.Requirement: Be<strong>for</strong>e you can lock a catalog, you must have read authority to theprofile name, IGG.CATLOCK, with class type FACILITY.//IMPRTCAT JOB ...//STEP1 EXEC PGM=IDCAMS//SOURCE DD DSNAME=CATBACK,UNIT=3390,// VOL=SER=327409,DISP=OLD//SYSPRINT DD SYSOUT=A//SYSIN DD *IMPORT -INFILE(SOURCE) -OUTDATASET(USERCAT4) -ALIAS -LOCK -CATALOG(ICFMAST1)/*Job control language statement:vSOURCE DD describes the portable data set, CATBACK.The IMPORT command copies the portable data set, CATBACK, into the system.<strong>Access</strong> method services reorganizes the data records so that deleted records areremoved and control intervals and control areas contain the specified free spacepercentages. The original copy of the cluster is deleted and replaced with the datarecords from the CATBACK portable file. The IMPORT command’s parameters are:v INFILE points to the SOURCE DD statement.vvvvOUTDATASET gives the name of the catalog being imported. <strong>Access</strong> methodservices dynamically allocates the catalog.ALIAS specifies that aliases that already exist in the master catalog <strong>for</strong>USERCAT4 are to be preserved and that the aliases on the portable file are to belisted. However, if USERCAT4 had not existed in the system when importing,the aliases on the portable file would have been defined <strong>for</strong> USERCAT4.LOCK specifies that the catalog being imported is locked.CATALOG identifies the master catalog, ICFMAST1.Import a Key-Sequenced Cluster: Example 3In this example, a key-sequenced cluster, BCN.EXAMPLE.KSDS1, that waspreviously exported, is imported. (See the EXPORT example, “Export aKey-Sequenced Cluster: Example 2” on page 254.) OUTFILE and its associated DDstatement are provided to allocate the data set.The original copy of BCN.EXAMPLE.KSDS1 is replaced with the imported copy,TAPE2. <strong>Access</strong> method services finds and deletes the duplicate name,BCN.EXAMPLE.KSDS1, in the catalog, VCBUCAT1. (A duplicate name existsbecause TEMPORARY was specified when the cluster was exported.) <strong>Access</strong>268 z/<strong>OS</strong> <strong>V1R6.0</strong> <strong>DFSMS</strong> <strong>Access</strong> <strong>Method</strong> <strong>Services</strong> <strong>for</strong> <strong>Catalogs</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!