The UPDATE command allows you to attach more recent versions of
elements to your own collections, records, or fields. In this
way, you can access the work of others in your working group.
Before you issue the UPDATE command, you must reserve the
elements you wish to update. The SHOW RESERVATIONS command
indicates whether this condition exists.
When you issue the UPDATE command, the action that occurs depends
on the keyword you specified in the DEFAULT_ATTACHMENT clause of
the DEFINE CONTEXT or the CHANGE CONTEXT command for your current
context. The following table lists the keywords and behaviors
associated with them:
DEFAULT_
ATTACHMENT
Keyword Behavior
LATEST Detaches the version currently attached and
attaches the latest version, whether checked in
or ghost. This keyword is the default attachment
method.
LATEST_CHECKIN Detaches the version currently attached and
attaches the version most recently checked in.
SPECIFIC_ Does not detach the version currently attached.
VERSION
The UPDATE command cannot attach a ghost version created with
another context. The UPDATE command also cannot attach a checked-
in version unless you have write privilege for the partition
where the version resides.