As Clause - HP DDL D40 Reference Manual

Data definition language
Table of Contents

Advertisement

Definition Attributes

AS Clause

The AS clause specifies a display string for an enumeration value when AS is in a level
89 enumeration clause. At the definition level, the AS clause 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.
DDL ignores the AS clause when generating host-language source code.
AS {"display-string" | constant-name} [LN clause]
display-string
is an ASCII or national character string.
constant-name
is the name of a constant in the open DDL dictionary. The constant value must be
a valid display-string value.
LN clause
specifies the locale associated with a value.
The following example shows a DDL definition containing an AS clause that specifies a
default display string:
CONSTANT prts-obj-bolt
CONSTANT prts-obj-nut
CONSTANT prts-obj-pin
CONSTANT prts-obj-screw
CONSTANT prts-obj-washer
DEF prts-ddl-object-type TYPE ENUM BEGIN
89 prts-enm-bolt
89 prts-enm-nut
89 prts-enm-pin
89 prts-enm-screw
89 prts-enm-washer
END.
Data Definition Language (DDL) Reference Manual—426798-002
VALUE IS 1.
VALUE IS 2.
VALUE IS 3
VALUE IS 4.
VALUE IS 5.
VALUE IS prts-obj-bolt AS "Bolt".
VALUE IS prts-obj-nut AS "Nut".
VALUE IS prts-obj-pin AS "Pin".
VALUE IS prts-obj-screw AS "Screw".
VALUE IS prts-obj-washer AS "Washer".
6 -3
AS "Miscellaneous".
AS Clause

Advertisement

Table of Contents
loading

Table of Contents