CDO$HELP.HLB  —  CDO Commands, CONVERT  Examples
    1.CDO>   CONVERT CDD$TOP.PERSONNEL.BADGE_NUMBER BADGE_NUMBER

      In this example, the CONVERT command converts the DMU BADGE_
      NUMBER record definition (and any embedded field definitions)
      to a CDO BADGE_NUMBER record definition in your default CDO
      directory.

    2.CDO>  CONVERT CDD$TOP.SHIPMENTS.CUSTOMER_RECORD,
      cont>  CDD$TOP.SHIPMENTS.INVENTORY_RECORD *

      In this example, CDO converts the DMU record definitions
      CUSTOMER_RECORD and INVENTORY_RECORD into your CDO directory.
      Because the asterisk (*)  wildcard character was used in the
      destination-name, the DMU record definitions keep the same
      names after the conversion.

    3.DEFINE RECORD CDD$TOP.HARBORMASTER.YACHTS
          DESCRIPTION IS
              /* This record contains the manufacturer, model, and
                 dock number of each yacht in the harbor, along
                 with the owner's name. */.
          YACHTS STRUCTURE.
              MANUFACTURER        DATATYPE IS TEXT
                                  SIZE IS 30 CHARACTERS.
              MODEL               DATATYPE IS TEXT
                                  SIZE IS 30 CHARACTERS.
              DOCK_NUMBER         DATATYPE IS TEXT
                                  SIZE IS 2 CHARACTERS.
              NAME STRUCTURE.
                  LAST_NAME       DATATYPE IS TEXT
                                  SIZE IS 15 CHARACTERS.
                  FIRST_NAME      DATATYPE IS TEXT
                                  SIZE IS 10 CHARACTERS.
                  MIDDLE_INITIAL  DATATYPE IS TEXT
                                  SIZE IS 1 CHARACTER.
              END NAME STRUCTURE.
          END YACHTS STRUCTURE.
      END YACHTS RECORD.

      In this example, YACHTS is the name of a DMU record definition
      and also of the STRUCTURE field description statement within
      the record definition.

    4.CDO>  CONVERT YACHTS YACHTS_NEW
      CDO>  SHOW RECORD/FULL YACHTS_NEW
      Definition of record YACHTS_NEW
      |   Contains field           MANUFACTURER
      |   |   Datatype                 text size is 30 characters
      |   Contains field           MODEL
      |   |   Datatype                 text size is 30 characters
      |   Contains field           DOCK_NUMBER
      |   |   Datatype                 text size is 2 characters
      |   Contains record          NAME
      |   |   Contains field           LAST_NAME
      |   |   |   Datatype                 text size is 15 characters
      |   |   Contains field           FIRST_NAME
      |   |   |   Datatype                 text size is 10 characters
      |   |   Contains field           MIDDLE_INITIAL
      |   |   |   Datatype                 text size is 1 characters
      CDO>

      When you convert the DMU record definition YACHTS to the
      CDO record definition YACHTS_NEW, the resulting CDO record
      definition has YACHTS_NEW for its directory name and processing
      name.
Close Help