Definition Attributes
Data Definition Language (DDL) Reference Manual — 426798-002
6- 46
TACL Clause
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 TYPE CHARACTER 8 TACL CRTPID.
02 subvol TYPE CHARACTER 8.
02 file TYPE CHARACTER 8.
END
DDL translates this definition into the following TACL source code:
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;
?Section TERM^ID Struct
Begin
CRTPID TERM^ID;
End;
High-level TACL type:
CRTPID
VST611.vsd
Содержание DDL D40
Страница 36: ...Introduction to DDL Data Definition Language DDL Reference Manual 426798 002 1 14 Examining a Dictionary ...
Страница 66: ...Named Constants Data Definition Language DDL Reference Manual 426798 002 4 10 Standard SPI Constants ...
Страница 230: ...Dictionary Manipulation Statements Data Definition Language DDL Reference Manual 426798 002 8 14 SHOW USE OF Statement ...
Страница 370: ...Dictionary Maintenance Data Definition Language DDL Reference Manual 426798 002 10 24 Converting a Dictionary ...
Страница 456: ...Sample Schemas Data Definition Language DDL Reference Manual 426798 002 B 12 ASSNDDL Statements ...
Страница 470: ...DDL Data Translation Data Definition Language DDL Reference Manual 426798 002 C 14 ...
Страница 528: ...Dictionary Reports Data Definition Language DDL Reference Manual 426798 002 E 8 Requesting Reports ...
Страница 552: ...DDL Alignment Rules Data Definition Language DDL Reference Manual 426798 002 H 4 FIELDALIGN_SHARED8 Alignment Rules ...
Страница 576: ...Index Data Definition Language DDL Reference Manual 426798 002 Index 22 Special Characters ...