S-READ-FUNCTION
This function reads the next record in the sequence of records
Syntax:
 SET S-READ-FUNCTION TO TRUE
 
 CALL "S$IO" USING SIO-FUNCTION 
                   f 
                   recBuffer
            GIVING returnCode
Parameters:
f
the file handle returned by S-OPEN-FUNCTION.
recBuffer
an alphanumeric data-item that receives the record read.
Return code:
returnCode can be any signed numeric data item and provides additional information:
>0
Number of bytes read, plus one.
0
Operation failed.