11. READ FROM ON-LINE 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
cmpcdis the completion code variable associated with the local socket.bfris the variable into which the data is to be placed, and has the attribute CHARACTER, of any fixed length. If the length ofbfris greater than the amount of data received,bfrwill be padded to the right with blanks.len, in absolute value, is the maximum number of characters to be placed inbfr. If the length fields of the header(s) received total more data thanlen, the excess data will be received, but will not be placed intobfr, and will not be accessible to the program. Iflenis positive or zero, data will be received until a trailer is encountered. Iflenis negative, a single message, exclusive of trailer, will be received.lenhas the attributes BINARY FIXED(31,0).timeis the length of time the subprogram is to wait for the completion of the operation.
The completion codes for this operation are the same as for RECEIVE.