ENABLE Reference Manual
THE GENERAL SERVER
Usage-Dependent Fields
ENABLEGS ignores fields that are not required. For example,
ENABLEGS will ignore COMPARE-LENGTH except on a random READ
(TRANS-CODE =1).
Usage-Dependent Fields
As Figure E-2 shows, nine fields in the prefix are associated
with transaction codes. These fields are:
FUNCTION-CODE
FILE-NAME
FILE-NUMBER
FILE-POSITION
KEY-SPECIFIER
COMPARE-LENGTH
RECORD-LENGTH
RECORD-AREA-LENGTH
LOGICAL-KEY-LENGTH
Specific information about each field is given in the following
paragraphs.
General Server header fields that are not specifically required
for a transaction should have the values as returned by the
previous transaction.
FUNCTION-CODE Field
The requester must supply a value for this field only for a READ
operation (code 1) and INSERT operation (code 4).
For READ operations, the value supplied can be any of the
following:
FR READ FIRST (by selected key from KEY-SPECIFIER)
EX READ EXACT (by selected key from KEY-SPECIFIER)
AP READ APPROXIMATE (by selected key from KEY-SPECIFIER)
GN READ GENERIC (with a portion of the key)
AG READ APPROXIMATE GENERIC (a READ APPROXIMATE with the
value of the full key, while establishing a new
key set using a portion of that key)
NX READ NEXT (within the current key set, or within the
file)
NN READ NEXT (with a new key set, but starting with a
READ APPROXIMATE on the record supplied)
E-9