When the new list entry is created, specify whether the list entry
is to be assigned an entry ID, entry key, or list key.
If the structure was allocated to use a user-provided entry
ID, the newly created list entry is assigned the ENTRYID specified
by ASSIGNENTRYID, provided a list entry does not already exist with
the same ENTRYID.
If the structure was allocated to use
keyed entries, an
entry
key (and therefore, the target list keyed position) is assigned
to the newly created list entry as follows:
- If ENTRYKEY is not specified, and TARGETKEY=NO_TARGETKEY is specified
(explicitly or by default) with ASSIGNLISTKEY=NO or with ASSIGNLISTKEY=MOVE,
then:
- If MOVETODIRECTION=HEADTOTAIL is specified (explicitly or by default),
the newly created list entry is assigned an entry key value of all
binary zeros.
- If MOVETODIRECTION=TAILTOHEAD is specified, the newly created
list entry is assigned an entry key value of all binary ones.
- If ENTRYKEY is specified, and TARGETKEY=NO_TARGETKEY is specified
(explicitly or by default) with ASSIGNLISTKEY=NO or with ASSIGNLISTKEY=MOVE,
the newly created list entry is assigned the value specified by ENTRYKEY.
- If TARGETKEY is specified with ASSIGNLISTKEY=NO or with ASSIGNLISTKEY=MOVE,
the newly created list entry is assigned the value specified for TARGETKEY.
- If ASSIGNLISTKEY=CREATE or ASSIGNLISTKEY=ANY is specified, the
newly created list entry is assigned the list key value of
the target list.
- The newly created list entry is placed on the list specified by
MOVETOLIST at the head or tail of the sublist composed of list entries
whose entry keys are equal to the assigned entry key. The newly created
list entry is placed at the head or tail of this sublist as specified
by MOVETODIRECTION. If a sublist of entries with entry keys equal
to the assigned entry key does not yet exist, the newly created list
entry is placed on the list in key sequence.
- The newly created list entry is placed on the list specified by
MOVETOLIST at the head or tail of the sublist composed of list entries
whose secondary keys are equal to the secondary key of the moved entry.
The newly created list entry is placed at the head or tail of this
sublist as specified by SKEYTARGETDIR. If a sublist of entries with
secondary keys equal to the assigned secondary key does not yet exist,
the newly created list entry is placed on the list in secondary key
sequence.