Previous Topic: More InformationNext Topic: Using the Copy Option


Using the Prepass Check Option

The YCPYMDLOBJ command includes a parameter, CPYOPT, with an option that lets you check the objects before they are copied.

The default CPYOPT(*PREPASS) option lets you check for discrepancies between the models before copying the objects. The command expands the list of objects specified for copying and compares the selected objects against those in the target model but does not copy the objects. A report generates, which lists any discrepancies between the models. These discrepancies fall into two categories:

All messages reside in the Y2MSG file. You can obtain more information about a message by using the Display Message Description (DSPMSGD) command to examine the second level text for the message.

If the report contains only warnings or no discrepancies, you can rerun YCPYMDLOBJ, using the *COPY option. You must resolve all errors before you can successfully rerun the copy. Actions you can take include:

To reduce the volume of the report you can use the SEVFLT parameter to omit various categories of warnings.