CDO$HELP.HLB  —  CDO Commands, ATTACH_TO_COMPOSITE, Examples
    1.CDO>  DEFINE PARTITION FIRST_QUARTER AUTOPURGE.
      CDO>  DEFINE CONTEXT SALES
      cont>   BASE_PARTITION FIRST_QUARTER.
      CDO>  SET CONTEXT SALES
      CDO>  DEFINE COLLECTION SALES_EACH_PRODUCT.
      CDO>  CONSTRAIN FIELD PART_NUMBER
      CDO>  RESERVE COLLECTION SALES_EACH_PRODUCT
      CDO>  ATTACH FIELD PART_NUMBER TO SALES_EACH_PRODUCT
      CDO>  REPLACE COLLECTION SALES_EACH_PRODUCT

      In this example, the ATTACH TO COMPOSITE command attaches the
      PART_NUMBER field to the SALES_EACH_PRODUCT collection.

    2.CDO>  RESERVE COLLECTION EMPLOYEE_RECORDS
      CDO>  DETACH FIELD FIRST_NAME(2:BRANCH:2) FROM EMPLOYEE_RECORDS
      CDO>  ATTACH FIELD FIRST_NAME(2) TO EMPLOYEE_RECORDS
      CDO>  REPLACE COLLECTION EMPLOYEE_RECORDS

      In this example, the ATTACH TO COMPOSITE command attaches a
      version in the main line of descent, FIRST_NAME(2), to the
      EMPLOYEE_RECORDS collection. This allows you to create further
      versions in the main line, instead of in the branch line where
      you had been working.
Close Help