skip to main content

Library Routines : I$IO : READ-FUNCTION

READ-FUNCTION
This function reads a record out of an indexed file.
The record locking is controlled by the f-no-lock external data-item. Move 1 to f-no-lock to read without locking. Move 0 to f-no-lock to read with lock. The default value of f-no-lock is 0.
If this function has success, RETURN-CODE is set to the size of the record read. RETURN-CODE is set to zero on failure.
Syntax
 SET READ-FUNCTION TO TRUE
 CALL "I$IO" USING IO-FUNCTION
            GIVING returnCode
Parameters:
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.
Return code:
returnCode can be any signed numeric data item and provides additional information:

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left