The LIKEDS keyword is used to define a data structure, data structure subfield, prototyped return value, or prototyped parameter
like another data structure. The subfields of the new item
will be identical to the subfields of the parent data structure specified
as the parameter to the LIKEDS keyword.
A data structure defined using LIKEDS is automatically qualified
even if the parent data structure is not qualified. The subfields must be
referred to using the qualified notation DSNAME.SUBFIELDNAME. If the parent
data structure has any unnamed subfields, the child data structure will have
the same unnamed subfields.
LIKEDS can be coded for subfields of a qualified data structure.
When LIKEDS is coded on a data structure subfield definition, the subfield
data structure is automatically defined as QUALIFIED. Subfields in a LIKEDS
subfield data structure are referenced in fully qualified form: "ds.subf.subfa". Subfields defined with LIKEDS are themselves data structures, and
can be used wherever a data structure is required.
The values of the ALIGN and ALTSEQ keywords are inherited by the new data
structure. The values of the OCCURS, DIM, NOOPT, and INZ
keywords are not inherited. To initialize the subfields in the same way as
the parent data structure, specify INZ(*LIKEDS).