You can import resource and descriptor definitions from
the IMSRSC repository to IMS by issuing the IMPORT
DEFN SOURCE(REPO) command.
Perform the following procedure to import resource and descriptor
definitions from the repository:
Procedure
- Issue the IMPORT DEFN SOURCE(REPO) command.
You can use the keyword SCOPE(ALL) or SCOPE(ACTIVE)
to specify whether the command applies to all IMS systems in the IMSplex that have the resource
defined (even if some of them are inactive) or only to the active
systems.
If
SCOPE(ALL) is specified and an IMS system to which the
resources and descriptors are defined is not active, the command master IMS calls RM to create or update an IMS
change list in the repository with a list of the resource and descriptor names being imported. The
resource definitions of all the resource names in the IMS
change list are imported at warm or emergency restart so that the IMS is synchronized with all other IMS systems in the
IMSplex. If a change list is created in the repository, a response line is returned on the
IMPORT command for each resource name in the change list with the IMSID of the
IMS for which the change list is created, along with the import
type (IMPTYPE) of the change list.
Use the OPTION(UPDATE)
keyword for the command to indicate that if the definition being imported
is for a resource or descriptor that exists in IMS, the imported definition replaces the existing
runtime resource or descriptor definition. If the definition being
imported is for a resource or descriptor that does not exist, the
keyword indicates that the imported definition is used to create the
runtime resource or descriptor definition. If the OPTION(UPDATE) keyword
is not specified and a runtime definition exists for the resource
or descriptor, the import of the resource or descriptor definition
fails.
The internal control blocks used to manage the resources
are either created or updated during IMPORT DEFN SOURCE(REPO) command
processing.
You can verify the IMPORT
DEFN SOURCE(REPO) command output.
- If there was an error from running the IMPORT
DEFN SOURCE(REPO) command, verify whether the changes have
been imported by using one of the QUERY commands
to ensure that resources are imported.
If the changes have not been imported, reissue the IMPORT
DEFN SOURCE(REPO) command.