Function
The TYPEDEF clause defines that the data description entry is a type description entry.
Format
01 type-name-1 IS TYPEDEF [STRONG]
Syntax rules
The TYPEDEF clause may only be used in a data description entry with level number 01. The TYPEDEF clause must be the first clause.
Neither the current data description entry nor the description of a subordinate data item may be a data item of type-name-1 either directly or indirectly.
If the current data description entry is a data item, the STRONG phrase is not permitted.
The phrases TYPEDEF and REDEFINES may not be used together.
A type description entry may not contain an OCCURS clause.
Data types which are subordinate to a strongly typed type description entry must them selves be strongly typed or elementary.
General rules
If the TYPEDEF clause is specified, the data description entry is a type description entry. Subordinate data description entries and condition names are part of the type description entry. The data names of these descriptions can only be referenced as subordinate descriptions of group items which use the type name. If more than one group item references the type name, qualification with the name of the group is required. If there is no group with this characteristic, every reference to a data name which is subordinate to the current type description entry points to other data description entries, provided some exist, or is an invalid reference.
No storage is assigned to a type declaration entry.
The GLOBAL clause refers to the scope of the type name. All other clauses of the data description entry and subordinate data description entries refer to data which is defined with the aid of the type description entry.
Further details and restrictions are described in the section "Data types" .