Technical data
4.9.1 RETAINING Clause
The RETAINING clause specifies which currency indicators are not updated
during the execution of the COMMIT, CONNECT, FETCH, FIND, MODIFY,
RECONNECT, and STORE statements.
General Format
RETAINING
REALM
RECORD
SET
set-name
...
set-name
...
CURRENCY
set-name
is a set name which is available in the program’s subschema.
You can prevent currency indicator updates for REALM, RECORD, or SET.
Specifying REALM retains all realm currency indicators; specifying RECORD
retains all record currency indicators.
If SET is used without the set-name list option, the Database Control System
(DBCS) retains the currency indicators for all sets in the subschema. If you
specify the set-name list option, only the currency indicators for the specified
sets are retained. The same set-name cannot be listed more than once in a given
set-name list.
If you specify the RETAINING clause and do not select an option, the DBCS
retains all REALM, RECORD, and SET currency indicators.
4–66 Procedure Division