CDO$HELP.HLB  —  CDO Edit Strings, Literal Characters
    A pair of double quotation marks (" ") are the edit string
    literal characters. Any character string enclosed by double
    quotation marks in an edit string is inserted into the edited
    value.

    CDO Edit       99" ""Hours"
    String:
    DTR Edit       99B'Hours'
    String:
    Field Value:   40
    Edited         40 Hours
    Value:

    Translation of CDO Literal Edit Strings shows how CDO translates
    CDO literal edit strings for other languages. In the table, <i>
    means that the language does not support the CDO character, and
    the character is ignored for the language.

    If the character appears in an edit string with other characters
    that can be translated, CDO will perform the appropriate
    translation for the other edit string characters. If CDO
    characters other than a blank, 0, /, or % occur in a string,
    CDO passes those characters to DIGITAL DATATRIEVE and RPG without
    performing a translation.

    If a CDO edit string consists of only a 0, /, %, or a blank, then
    CDO performs the appropriate translation as shown in the first
    four lines of the table. The last line of the table shows how CDO
    translates any other edit string for each language. For example,
    CDO translates the CDO edit string "sample string" to 'sample
    string' for DIGITAL DATATRIEVE.

    Note that the initial blank character in the CDO edit string does
    not become a B in DIGITAL DATATRIEVE except when the blank is
    the only character in the edit string. CDO translates characters
    from the first four lines of the table differently depending on
    whether or not they are the only characters in an edit string.

    Table 6-3 Translation of CDO Literal Edit Strings

    Literal                                      RPG
    String    CDO      COBOL    DTR     PL/I     EDIT
    Format    String   PICTURE  EDIT    PICTURE  WORD

    "string"  Blank    B        B       B        &

              0        0        0       <i>      0

              /        /        /       /        /

              %        <i>      %       <i>      %

              Any      <i>      'string'<i>      string
              other
              string
Close Help