HP DDL D40 Reference Manual page 140

Data definition language
Table of Contents

Advertisement

Definition Attributes
DDL generates the following TACL data structure for the preceding definition:
?Section TERM^ID Struct
Begin
CHAR
BYTE (0:7)
End
A TACL clause at the group level overrides any TACL clauses specified for fields within
the group; for example:
DEF fname-def TACL FNAME.
02 volume
02 subvol
02 file
END
DDL translates this definition into the following TACL source code:
?Section TERM^ID Struct
Begin
CRTPID TERM^ID;
End;
If a definition or record is defined by referring to an existing definition and does not
specify a TACL clause, the referring object assumes any TACL clause in the
referenced definition. For example, the following DEFINITION statement inherits the
TACL data type specified for group FNAME-DEF in the preceding example:
?TACL
DEF fname-2 TYPE fname-def.
From the preceding definition, DDL generates the same TACL data type as the original
FNAME-DEF:
?Section FNAME^2 Struct
Begin
FNAME
FNAME^2;
End;
If the referring object is defined with a TACL clause, the referring TACL data type
overrides any referenced TACL data type. For example, the TACL clause in the
following DEFINITION statement overrides the TACL clause in the definition of TERM-
ID:
?TACL
DEF trans-id TYPE term-id TACL TRANSID.
From the preceding DEFINITION statement, DDL generates the following TACL source
code:
?Section TRANS^ID Struct
Begin
TRANSID
TRANS^ID;
End;
Data Definition Language (DDL) Reference Manual—426798-002
TYPE CHARACTER 8
TYPE CHARACTER 8.
TYPE CHARACTER 8.
High-level TACL type:
CRTPID
6- 46
TACL CRTPID.
VST611.vsd
TACL Clause

Advertisement

Table of Contents
loading

Table of Contents