Exchange/RJE Manual

WRITE Procedure
Exchange/RJE System Procedure Calls
104698 Tandem Computers Incorporated 5–37
WRITE Procedure The WRITE procedure writes a record from your program to the Exchange/RJE line
server for transmission to the remote system.
CALL WRITE (
filenum
,
buffer
,
write-count
, [
count-written
]
, [
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 containing the record to be sent to the remote system.
write-count
INT:value
is the size, in bytes, of the record to be written. The allowed ranges are from 1
through 144 for 2780- and 3780-emulation mode.
For block mode without blocking and block mode with 2780-blocking, the value
must be no larger than the block size specified in the BLOCKSIZE parameter when
the line server was started.
For block mode with 3780-blocking, the value must be no larger than the block size
minus one (1) specified in the BLOCKSIZE parameter when the line server was
started.
count-written
INT:ref:1
returns the number of bytes written to the line server. This parameter is used only
for wait I/O. For nowait I/O, you can omit this parameter; the number of bytes
written is returned in the count transferred parameter of the AWAITIO procedure
that completes the write operation.