Exchange/RJE Manual
RECEIVE Command
Exchange/RJE Commands
104698 Tandem Computers Incorporated 3–43
Translation of Normal Text
Whether data that Exchange/RJE receives as normal text is translated from EBCDIC to
ASCII depends on how the data communications line was defined during system
generation. There are two cases to consider: data communications lines defined as
EBCDIC lines and those defined as ASCII lines. Each case is discussed below.
If the data communications line was defined as an EBCDIC line, data received as
normal text is translated from EBCDIC to ASCII before it is written to the print file or
the punch file. This translation is automatic and cannot be suppressed. If you want to
suppress this translation, the data must be sent by the remote system as transparent
text and you must specify NOTRANSLATE in the RECEIVE command.
If the data communications line was defined as an ASCII line, data received as normal
text is not translated from EBCDIC to ASCII before it is written to the print file or the
punch file. If you want to have the data translated, the data must be sent by the
remote system as transparent text and you must specify TRANSLATE (or omit the
parameter) in the RECEIVE command.
Receiving Transparent Text
When you are receiving transparent text into a print file, the transparent text blocks
sent by the remote system must contain fixed-length records. In addition, if the record
size is other than 80 bytes, the record size must be specified in the RECSIZE parameter
of the RECEIVE command. When you are receiving transparent text into a punch file,
the transparent text blocks sent by the remote system must contain fixed-length
records of 80 bytes each.
If you want to receive transparent text and write it to the punch file, the first block of
the file must be sent as normal text and must contain only the escape sequence that
identifies the file as punch data. Following blocks can then be sent as transparent text,
and they are written to the punch file. If the escape sequence that identifies the file as
punch data is sent as transparent text, the escape sequence are written to the print file
as if it were data and all following blocks are also be written to the print file.
Print File and Punch File Open Mode
Both the print file and the punch file are opened by Exchange/RJE for write-only,
exclusive access, unless the file is a terminal. If the file is a terminal, the file is opened
for read/write, shared access.
Writing to Unstructured Disk Files
2780- and 3780-Emulation Modes. If the print file is an unstructured disk file, the records
are written as fixed-length records of 148 bytes. The format of each record is described
below.
Each record is padded with blanks as needed to make a 146-byte record. Two
additional bytes are then appended to the record, making a total of 148 bytes per
record.