Step First (33)
The Step First operation (B_STEP_FIRST) retrieves the first physical record of the file. The MicroKernel Engine does not use a key path to retrieve the record.
Parameters
 
Prerequisites
The file must be open.
Procedure
1
For more information about locking, refer to the PSQL Programmer's Guide.
2
3
Result
If the Step First operation is successful, the MicroKernel Engine returns the file’s first physical record in the data buffer and sets the data buffer length parameter to the number of bytes returned.
If the Step First operation is unsuccessful, the MicroKernel Engine returns one of the following status codes:
Positioning
The Step First operation destroys logical currency. Step First sets the physical currency using the retrieved record as the physical current record. The previous physical position points beyond the beginning of the file.