Skip to main content

9. Read from Online Console

This subprogram receives data, assumed to be characters represented by their EBCDIC codes, from the foreign socket in one or more standard messages. The subprogram will wait for the data, optionally followed by a trailer, to be received by the local socket. This operation is valid only when the local socket is a receive socket and is fully open.

The calling sequence is as follows:

CALL RFOLC (cmpcd, bfr, len, time)

Where

'cmpcd' is the completion code variable associated with the local socket.

'bfr' is the variable into which the data is to be placed, and can be of any type, any length.

'len', in absolute value, is the maximum number of characters to be placed in 'bfr'. If the length fields of the head(s) received total more data than 'len', the excess data will be received, but will not placed into 'brf', and will not be accessible to the program. If 'len' is positive or zero, data will be received until a trailer is encountered. If 'len' is negative, a single message, exclusive of trailer, will be received. 'len' is of type INTEGER*4.

'time' is the length of time the subprogram is to wait for completion of the operation.

The completion codes for this operation are the same as for RECEIVE.