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