CDDLHELP.HLB  —  EDIT_STRING
  The EDIT_STRING field attribute clause provides  a  format  that  VAX
  DATATRIEVE follows when displaying a field's value.

1  –  Parameter

  dtres_quoted_string

       A VAX DATATRIEVE edit string.

2  –  Syntax Rules

   o  The edit string  must  be  a  valid  VAX  DATATRIEVE  expression.
      However,  the  CDDL compiler does not check the quoted string for
      correct syntax.

   o  You can use 8-bit characters in CDDL quoted strings.

3  –  Usage Note

  Only VAX DATATRIEVE supports the EDIT_STRING clause.  Other  language
  processors ignore it.

4  –  Example

  In the following example,  VAX  DATATRIEVE  displays  the  TRANS_DATE
  field   as   a   series  of  three  2-digit  numbers  in  the  format
  month/day/year.

  TRANSACTION STRUCTURE    OCCURS 1 TO 99 TIMES
                           DEPENDING ON TRANSACTION_COUNT.
      TRANS_DATE           DATATYPE IS DATE
                           EDIT_STRING FOR DATATRIEVE
                           IS "MM/DD/YY".
      ORDER_NUMBER         DATATYPE IS UNSIGNED NUMERIC
                           SIZE IS 10 DIGITS.
      AMOUNT               DATATYPE IS UNSIGNED NUMERIC
                           SIZE IS 8 DIGITS 2 FRACTIONS
                           INITIAL VALUE IS 0.
  END TRANSACTION STRUCTURE.
Close Help