CDO$HELP.HLB  —  CDO Commands, DETACH_FROM_COMPOSITE, Examples
    1.CDO>  RESERVE COLLECTION SALES_EACH_PRODUCT
      CDO>  ATTACH FIELD PART_NUMBER TO SALES_EACH_PRODUCT
      CDO>  REPLACE COLLECTION SALES_EACH_PRODUCT
         .
         .
         .
      CDO>  RESERVE COLLECTION SALES_EACH_PRODUCT
      CDO>  DETACH FIELD PART_NUMBER FROM SALES_EACH_PRODUCT
      CDO>  REPLACE COLLECTION SALES_EACH_PRODUCT

      In this example, the DETACH command detaches an element from a
      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 DETACH FROM COMPOSITE command detaches a
      version in the branch line of descent, FIRST_NAME(2:BRANCH:2),
      from the EMPLOYEE_RECORDS collection. After you attach a
      version in the main line, FIRST_NAME(2), to EMPLOYEE_RECORDS
      you can create new versions in the main line, instead of in the
      branch line where you had been working.
Close Help