Data Definition Language (DDL) Reference Manual

Definition Attributes
Data Definition Language (DDL) Reference Manual529431-004
6-3
AS
AS
The AS clause specifies a display string.
display-string
is either a string of ASCII or national characters (enclosed in quotation marks) or
the name of a constant in the open dictionary. The value of the constant must be a
string of ASCII or national characters.
LN-clause
specifies the locale name for value (see LN on page 6-13).
In Example 6-1 on page 6-3, a DDL definition uses an AS clause to specify a default
display string.
Note. The DDL compiler ignores this clause when generating host-language source code.
Context Effect
Field Definition
on page 5-4 Specifies a display string for an enumeration value in a
field of type ENUM
89 Enumeration
on page 6-85 Specifies a default display string for a field of type ENUM.
This default becomes the display string when the value of
the field does not match any of the values specified by
level-89 enumeration clauses in the field’s definition or
description.
AS display-string [ LN-clause ]...
Example 6-1. AS Clause
CONSTANT prts-obj-bolt VALUE IS 1.
CONSTANT prts-obj-nut VALUE IS 2.
CONSTANT prts-obj-pin VALUE IS 3
CONSTANT prts-obj-screw VALUE IS 4.
CONSTANT prts-obj-washer VALUE IS 5.
DEF prts-ddl-object-type TYPE ENUM BEGIN AS "Miscellaneous".
89 prts-enm-bolt VALUE IS prts-obj-bolt AS "Bolt".
89 prts-enm-nut VALUE IS prts-obj-nut AS "Nut".
89 prts-enm-pin VALUE IS prts-obj-pin AS "Pin".
89 prts-enm-screw VALUE IS prts-obj-screw AS "Screw".
89 prts-enm-washer VALUE IS prts-obj-washer AS "Washer".
END.