Exchange/RJE Manual
WRITEREAD Procedure
Exchange/RJE System Procedure Calls
5–40 104698 Tandem Computers Incorporated
WRITEREAD
Procedure
The WRITEREAD procedure either writes a record from your program to the
Exchange/RJE line server for transmission to the remote system or reads a record
received by the line server from the remote system.
CALL WRITEREAD (
filenum
,
buffer
,
write-count
,
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:*
For a write operation, this is an array containing the record to be sent to the remote
system.
For a read operation, this array returns the record received from the remote
system.
write-count
INT:value
For a write operation, this is the size, in bytes, of the record to be written. The
allowed ranges are:
2780/3780-emulation mode: 1 through 144 bytes
Block mode with 2780 blocking: 1 through BLOCKSIZE
Block mode with 3780 blocking: 1 through BLOCKSIZE - 1
Block mode without blocking: 1 through BLOCKSIZE
(BLOCKSIZE is specified in the RJESV command.)
For a read operation,
write-count
must be 0.
read-count
INT:value
For a read operation, this 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
.