SET READ-FUNCTION TO TRUE CALL "I$IO" USING IO-FUNCTION f record keyNum GIVING returnCode |
f | must be a valid file handle returned by OPEN-FUNCTION. |
record | points to the area to hold the record read. Note: in order to gain performance, in isCOBOL File Server environment the previous content of this parameter is discarded before reading. After reading, the bytes exceeding the number of read bytes are initialized to low-values. |
keyNum | the key number to read from. The value can be 0 or greater than 0, where 0 is the primary key, 1 is the first alternate key and so on. |
>0 | Number of read bytes. |
0 | Operation failed. |