Exchange/RJE Manual
RECEIVE Command
Exchange/RJE Commands
104698 Tandem Computers Incorporated 3–37
If you specify TRANSLATE and the remote system sends the data as
transparent text (each text block begins with DLE STX), the data is translated
from EBCDIC to ASCII before it is written to the print file. This translation
takes place even if the data communications line is defined as an ASCII line.
If you omit this parameter, the default value is TRANSLATE.
Line Activity The RECEIVE command does not itself initiate any line activity. It does, however,
enable Exchange/RJE to respond to a line bid from the remote system and to accept
blocks transmitted by the remote system.
RECEIVE Command When the Line is in the Control State
If the data communications line is in the control state (neither the local system nor the
remote system controls the line), the RECEIVE command causes Exchange/RJE to wait
for the remote system to bid for the line. Exchange/RJE waits indefinitely for the
remote system to bid for the line if the RETRIESIDLE parameter (specified in the SET
or RECEIVE command) is omitted or has a value of -1. Otherwise, the RECEIVE
command stops after “the read operation” has been retried the number of times
specified by the RETRIESIDLE parameter. When the remote system does bid for the
line, Exchange/RJE accepts the bid (Exchange/RJE responds with an ACK 0 to the
remote system’s ENQ) and then accepts blocks transmitted by the remote system. If
the remote system does not bid for the line, you can use the ABORT command to stop
the receive operation.
RECEIVE Command When the Line is in the Message State
If the line is in the message state and the remote system controls the line (has
permission to transmit), no bid for the line is required and the RECEIVE command
causes Exchange/RJE to accept blocks transmitted by the remote system.
ETX and Stopping the RECEIVE Command
The RECEIVE command recognizes an ETX as the end of a file. However, it doesn’t
stop upon receiving an ETX. If the remote station transmits multiple files (separated
by ETXs) in a single transmission, the RECEIVE command stops either:
When it receives an EOT, if the ALL parameter is not specified
or
When an ABORT or INTERRUPT command is entered, if the ALL parameter is
specified
Input When the RECEIVE Command Is Not Active
If the remote system bids for the line or sends data when a RECEIVE command is not
in progress, Exchange/RJE ignores the bid or the transmitted data. Exchange/RJE
does not respond in any way. The lack of a response eventually causes the remote
system to stop the bid or the transmission with a timeout error.