|
The Step Last operation (B_STEP_LAST) retrieves the last physical record of the file. The transactional interface does not use a key path to retrieve the record.
The file must be open.
If the Step Last operation is successful, the transactional interface returns the file's last physical record in the Data Buffer and sets the Data Buffer Length parameter to the number of bytes returned.
If the Step Last operation is unsuccessful, the transactional interface may return one of the following status codes:
|
3
|
The file is not open. |
|
9
|
The operation encountered the end-of-file. (when the file is empty) |
|
22
|
The data buffer parameter is too short. |
The Step Last operation destroys logical currency. Step Last sets the physical currency using the retrieved record as the current physical record. The next physical position points beyond the end of the file.
|
Chapter contents
Prev topic: Step First (33)
|