Skip to main content

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

  • cmpcd is the completion code variable associated with the local socket.
  • bfr is the variable into which the data is to be placed, and has the attribute CHARACTER, of any fixed length. If the length of bfr is greater than the amount of data received, bfr will be padded to the right with blanks.
  • len, in absolute value, is the maximum number of characters to be placed in bfr. If the length fields of the header(s) received total more data than len, the excess data will be received, but will not be placed into bfr, 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 has the attributes BINARY FIXED(31,0).
  • time is 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.