Exchange/RJE Manual
READ Procedure
Exchange/RJE System Procedure Calls
104698 Tandem Computers Incorporated 5–23
READ Procedure The READ procedure reads a record received by the line server from the remote
system.
CALL READ (
filenum
,
buffer
,
read-count
, [
count-read
]
, [
tag
] );
filenum
INT:value
is the file number of the Exchange/RJE line server. This number is returned by the
call to OPEN that established communication with the line server.
buffer
INT:ref:*
is an array in which the record read from the line server is returned. The array
should be as large or larger than the largest record you expect to receive from the
remote system.
read-count
INT:value
is the maximum number of bytes your program expects to read. This number
should be as large or larger than the size of the largest record you expect to receive
from the remote system.
read-count
must be no larger than the size of
buffer
.
The following are the maximum record sizes that the line server can receive:
2780/3780 emulation: 146 bytes
Block mode with 2780 blocking: BLOCKSIZE
Block mode with 3780 blocking: BLOCKSIZE - 1
Block mode without blocking: BLOCKSIZE
(BLOCKSIZE is specified in the RJESV command.)
If the record is larger than
read-count
bytes, the record is truncated to
read-
count
bytes.
If you have specified RAWDATA in the call to SETMODE function 43, which
specifies the parameters for a receive operation, the record you receive in
buffer
will include BSC control characters as well as the data.