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.

EXPORT/*USERCAT4 -OUTFILE(RECEIVE) -TEMPORARYJob control language statements:vRECEIVE DD describes the portable file that is to receive a copy of the catalog.The EXPORT copies the catalog, USERCAT4, and its aliases to a portable file,CATBACK. The parameters are:v USERCAT4 identifies the object to be exported.vvOUTFILE points to the RECEIVE DD statement. The RECEIVE DD statementdescribes the portable data set, CATBACK, that is to receive a copy of thecatalog.TEMPORARY specifies that the catalog is not to be deleted. The catalog ismarked “temporary” to indicate that another copy exists and that the originalcopy can be replaced. This is a required parameter when exporting a catalog thatcannot be exported with the PERMANENT parameter.Export a Key-Sequenced Cluster: Example 2In this example, a key-sequenced cluster, ZZZ.EXAMPLE.KSDS1, is exported froma user catalog, HHHUCAT1. The cluster is copied to a portable file, TAPE2, and itscatalog entries are modified to prevent the cluster’s data records from beingupdated, added to, or erased.//EXPORT1 JOB ...//STEP1 EXEC PGM=IDCAMS//RECEIVE DD DSNAME=TAPE2,UNIT=(TAPE,,DEFER),// DISP=NEW,VOL=SER=003030,// DCB=(BLKSIZE=6000,DEN=3),LABEL=(1,SL)//SYSPRINT DD SYSOUT=A//SYSIN DD *EXPORT -ZZZ.EXAMPLE.KSDS1 -OUTFILE(RECEIVE) -TEMPORARY -INHIBITSOURCE/*Job control language statement:vRECEIVE DD describes the portable file, a magnetic tape file, that is to receive acopy of the cluster’s records. The DCB BLKSIZE parameter overrides theEXPORT default of 2048 to improve per<strong>for</strong>mance.The EXPORT command copies key-sequenced cluster, ZZZ.EXAMPLE.KSDS1, andits cataloged attributes to a portable file, TAPE2. The parameters are:v ZZZ.EXAMPLE.KSDS1 identifies the cluster to be exported.vvvOUTFILE points to the RECEIVE DD statement. The RECEIVE DD statementdescribes the portable file, TAPE2, that is to contain a copy of the cluster.TEMPORARY specifies that the cluster is not to be deleted. The cluster’s catalogentry is marked “temporary” to indicate that another copy of the cluster existsand that the original copy can be replaced. (See the IMPORT Example, “Import aKey-Sequenced Cluster: Example 3” on page 268.)INHIBITSOURCE specifies that the copy of the cluster that remains in theoriginal system, as a result of TEMPORARY, cannot be modified. User programsare allowed only to read the cluster’s records.254 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!