The following examples demonstrate the use of DDDL statements to define and generate built-in tables.
Example 1
The following sample RECORD ELEMENT statement adds the DAY-EL element to the DATE-REC record and defines a built-in edit table of valid values for the element:
ADD RECORD DATE-REC . RECORD ELEMENT DAY-EL EDIT VALID TABLE IS ( SUNDAY MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY ) .
Example 2
The following sample RECORD ELEMENT statement adds MONTH-EL element to the DATE-REC record and defines a built-in code table for the element:
ADD RECORD DATE-REC . RECORD ELEMENT MONTH-EL CODE TABLE IS ( 01 JANUARY 02 FEBRUARY 03 MARCH 04 APRIL 05 MAY 06 JUNE 07 JULY 08 AUGUST 09 SEPTEMBER 10 OCTOBER 11 NOVEMBER 12 DECEMBER ) .
Copyright © 2013 CA.
All rights reserved.
|
|