Open System Services System Calls Reference Manual (G06.28+)

System Functions (s and S) SPT_READX(2)
Structured files
a subset of records for sequential SPT_READX() calls
The subset of records read by a series of calls to
SPT_READX( ) is specied through calls to the Guardian POSI-
TION or KEYPOSITION procedures.
reading of an approximate subset of records
If an approximate subset is being read, the rst record returned is
the one whose key eld, as indicated by the current key
specier, contains a value equal to or greater than the current
key. Subsequent reading of the subset returns successive
records until the last record in the le is read (an EOF indication
is then returned).
reading of a generic subset of records
If a generic subset is being read, the rst record returned is the
one whose key eld, as designated by the current-key specier,
contains a value equal to the current key for comparison-length
bytes. Subsequent reading of the le returns successive records
whose key matches the current key (for comparison-length
bytes). When the current key no longer matches, an EOF indica-
tion returns.
For relative and entry-sequenced les, a generic subset of the
primary key is equivalent to an exact subset.
reading of an exact subset of records
If an exact subset is being read, the only records returned are
those whose key eld, as designated by the current-key specier,
contains a value of exactly the comparison length bytes (see the
Guardian KEYPOSITION procedure in the Guardian Procedure
Calls Reference Manual) and is equal to the key. When the
current key no longer matches, an EOF indication returns. The
exact subset for a key eld having a unique value is at most one
record.
indicators after an PT_READX( ) call
After a successful SPT_READX() call, the current-state indica-
tors have these values:
Current position is the record just read
Positioning mode is unchanged
Comparison length is unchanged
Current primary-key value is set to the value of the
primary-key eld in the record
Unstructured files
Data transfer Data transfer begins from an unstructured disk le at the position
indicated by the next-record pointer. The READ[X] procedure
reads records sequentially on the basis of a beginning relative
byte address (RBA) and the length of the records read.
527186-005 Hewlett-Packard Company 7255