Error returns in loc_status

One of these flags is passed to the loc_open() function when opens the file. reads the data and writes it to the current location (which the loc_position field indicates) in the file. If is unable to read or write to a file, it sets the loc_status field of the locator structure to -463 or -464. If is unable to close a file, it sets loc_status to -462. updates the SQLCODE variable with this same value.