Previous Topic: COPY Statement ParametersNext Topic: INCLUDE Statement


Example: COPY Statement

When copying component entity definitions, the compiler works more efficiently if the system to which the definitions are being copied does not already include any occurrences of the entity. For example, if system 9 is to include all the same programs as system 8 plus the programs PXT078 and PXT079, the first set of statements shown next would add the programs to system 9 more efficiently than would the second set of statements:

Recommended:

     COPY PROGRAMS FROM SYSTEM 8 TO 9.
     ADD PROGRAM PXT078.
     ADD PROGRAM PXT079.
Not recommended:

     ADD PROGRAM PXT078.
     ADD PROGRAM PXT079.
     COPY PROGRAMS FROM SYSTEM 8 TO 9.