Data Definition Language (DDL) Reference Manual (G06.24+)
Definition Attributes
Data Definition Language (DDL) Reference Manual—426798-002
6-58
TYPE Clause
•
DDL reads def-name from the dictionary and then places the entire definition at
the level of the referring data element.
•
The level number of a data element immediately following the TYPE def-name
data element and in the same DEFINITION statement must be equal to or less
than the level number of the TYPE def-name data element.
•
If you use HEADING, DISPLAY, or VALUE in a definition that refers to another
definition, the new heading, display format, or initial value replaces the original
heading, display format, or initial value−but only if the original value was at the
outermost level in the referenced definition.
•
If you use NULL or UPSHIFT in a definition that refers to another definition, the
referring definition inherits the null value and upshift attribute from the referenced
definition.
•
You can use TYPE def-name to specify the length of a FILLER field. The FILLER
field assumes the total length of the referenced definition.
•
If you add comments, the new comments replace the original comments in a
definition referenced by another definition. CLISTOUTDETAIL lists the original
comments along with the new ones. For more information, see the CLISTOUT
Command on page 9-20.
Referring to a Definition of the Same Name. The following points are guidelines for
using the TYPE * clause:
•
DDL reads the definition with the same name as the subject of the TYPE * clause
from the dictionary and then places the entire referenced definition at the level of
the referring object.
•
The level number of a data element immediately following the TYPE * element in
the same DEFINITION statement must be equal to or less than the level number of
the TYPE * data element.
•
Any HEADING, DISPLAY, NULL, or VALUE clauses in the referring data element
override any equivalent clauses in the referenced data element−but only if the
clauses are at the outermost level of the referenced definition.
•
If you add comments, the new comments replace the original comments in a
definition referenced by another definition. CLISTOUTDETAIL lists the original
comments along with the new ones. For more information, see the CLISTOUT
Command on page 9-20.