Technical data

STORE
STORE
Function
The STORE statement stores a new record in the database, establishes the record
as an owner of an empty set of each set type for which the record is an owner
record type, and connects the record as a member to the current set of each set
type for which the record is an AUTOMATIC member record type.
General Format
STORE record-name
NEXT TO
DBKEY
WITHIN { realm-name } . . .
RETAINING
REALM
RECORD
SET
set-name
...
{ set-name } . . .
CURRENCY
ON ERROR stment
NOT ON ERROR stment2
END-STORE
record-name
names a subschema record type.
realm-name
names a subschema realm.
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. Realm-name cannot be specified more than once in the same STORE
statement.
2. Set-name cannot be specified more than once in the same STORE statement.
General Rules
1. The STORE statement references the record-name in the user work area.
You must move the data to be in record-name to the user work area before
executing a STORE statement.
2. If you specify the WITHIN option, the Database Control System (DBCS)
stores a new record occurrence in one of the realms from the list of realm-
names.
Procedure Division 4–59