Technical data

RECONNECT
RECONNECT
Function
The RECONNECT statement moves the current database record of the run unit
from one set to another (possibly the same) set.
General Format
RECONNECT
record-name
WITHIN
{ set-name } . . .
ALL
RETAINING
REALM
RECORD
SET
set-name
...
{ set-name } . . .
CURRENCY
ON ERROR stment
NOT ON ERROR stment2
END-RECONNECT
record-name
names a subschema record type.
set-name
names a subschema set type.
stment
is an imperative statement executed for an on error condition.
stment2
is an imperative statement executed for a not on error condition.
Syntax Rules
1. The record type of record-name must be a member record type of the set type
for each set-name.
2. Set-name cannot be specified more than once in the WITHIN clause.
3. Set-name cannot be specified more than once in the RETAINING clause.
General Rules
1. RECONNECT uses the current record of the run unit.
2. The current run unit record must be in a realm in ready update mode and
all records required by the Database Control System (DBCS) to execute the
RECONNECT statement must be in realms in available mode.
3. Use record-name to check that the record type of the current record of the run
unit is identical to the record type specified by record-name.
Procedure Division 4–53