Import to Connect a User Catalog
In this example, a user catalog, VCBUCAT2, is connected to the
system's master catalog, AMAST1. This example reconnects the user
catalog, VCBUCAT2, that was disconnected in the EXPORT DISCONNECT
example.
//IMPORT1 JOB ...
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
IMPORT -
OBJECTS -
((VCBUCAT2 -
VOLUME(VSER02) -
DEVICETYPE(3390))) -
CONNECT -
CATALOG(AMAST1)
/*
The IMPORT command builds a user catalog connector entry that identifies
the user catalog VCBUCAT2 in the master catalog AMAST1. The parameters
are:
- OBJECTS is required when a user catalog is being imported. The subparameters of OBJECTS identify the user catalog, VCBUCAT2; the user catalog's volume, VSER02; and the device type of the user catalog's volume, 3390.
- CONNECT specifies that the user catalog connector entry is to be built and put in the master catalog to connect the user catalog to the master catalog. CONNECT is required when a user catalog is being reconnected.
- CATALOG identifies the master catalog, AMAST1.