CDO$HELP.HLB  —  rec-properties  NAME
    Format

                { BASIC }
                { COBOL }
      NAME FOR  { PLI   } IS name
                {       }
                { RPG   }

1  –  Parameters

1.1  –  name

    Specifies a language-specific name for a field or record element.

2  –  Description

    The NAME property declares a language-specific name for a field
    or record element.

    This name must be a valid name for the specified language or
    language processor. CDO does not check the validity of the name
    that you specify.

    Once you have assigned a language-specific name to an element,
    the specific language no longer recognizes the element's original
    name.

    You can assign only one language-specific name per language to an
    element.

                                 CAUTION

       Be careful when you use the NAME field property because it
       allows you to assign completely different names to the same
       field or record element. Choose a language-specific name
       that is similar to the element's directory or processing
       name to avoid confusion.

3  –  Examples

  CDO>  DEFINE FIELD ORDER_NUMBER
  cont>   DATATYPE IS UNSIGNED NUMERIC
  cont>   SIZE IS 10 DIGITS
  cont>   NAME FOR COBOL IS ORDER-NUMBER.

      In this example, the NAME property assigns a language-specific
      processing name to the ORDER_NUMBER field used by COBOL.
Close Help