Step Next (24)
The Step Next operation (B_STEP_NEXT) retrieves the record to which the next physical position points. The MicroKernel Engine does not use a key path to retrieve the record.
A Step Next operation issued immediately after any Get or Step operation returns the record physically following the record retrieved by the previous operation.
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 Next operation is successful, the MicroKernel Engine returns the file’s next physical record in the data buffer and sets the data buffer length parameter to the number of bytes returned.
If the Step Next operation is unsuccessful, the MicroKernel Engine returns one of the following status codes:
Positioning
The Step Next operation does not establish logical currency. Step Next sets the physical currency using the retrieved record as the physical current record.
If a Step Next operation is issued immediately following a Delete operation (4), Step Next returns the record that was established as the next physical record by the operation preceding the Delete.
If a Step Next operation is issued immediately after an Open operation (0), Step Next returns the first record in the file.