Previous Topic: Copying a ModelNext Topic: More Information


Copy Part of a Model

To copy only selected objects from one CA 2E data model to another, use the CA 2E Copy Model Objects (YCPYMDLOBJ) command. For example, a company that develops software for its own use might want to apply some changes to the production model before the entire development model is ready to be copied.

You copy model objects by creating a model object list of all objects in the model you want to copy from. You can use the Edit Model List for Copy (YEDTCPYLST) command to perform additional setup tasks related to copying and to view the results of a copy. For a description of this process, see the Copying Part of a Model section in this chapter.

Copying part of a model involves the following steps:

  1. Prepare a model object list containing the model objects you want to copy. For example:
  2. Ensure the list entries for the objects you want to copy are flagged with CPYOBJ flag *SELECTED. You can do this directly from the YBLDMDLLST or YFLTMDLLST commands, with the YCHGMDLLE command, or interactively using the YEDTCPYLST panel (see below).

    Note: To prepare a list for copying you should use only the new model object list commands and/or the YEDTCPYLST command. The Build Copy List (YBLDCPYLST) command is available only for backward compatibility with previous releases of CA 2E and should not be used.

  3. Optionally, use the YEDTCPYLST command to invoke the Edit Model Object List for Copy panel. You can specify which objects you want to copy.

    You can assign new object names that will be used both to identify the same object in the target model and to be the name of the copied object in the target model. This step is often required if an object has been renamed that exists in both the target and source models.

  4. Use the YCPYMDLOBJ command to copy the CA 2E objects indicated by the edited model object list to another model. You can copy the objects, or you can run a prepass check for discrepancies between the objects in the source and target models.

The remainder of this section discusses this process in more detail.