Exchange/RJE Manual
RECEIVE Command
Exchange/RJE Commands
3–44 104698 Tandem Computers Incorporated
The first additional byte contains the number of the file received from the remote
system that contains that record. The numbers begin with 0 (zero) and are
incremented by 1 for each file received. The numbers are reset to 0 with each new
RECEIVE command. You can use the first additional byte (byte 147 in each record) to
separate multiple files written to the same print file
The second additional byte contains the number of bytes in the record before any
blanks were added (the original record length). You can use the second additional
byte (byte 148 in each record) to determine the number of bytes of data in each record.
Block Modes. When receiving in block mode with 2780- or 3780-blocking, or block
mode without blocking, and with a print file that is an unstructured disk file, the
records are written as fixed length records with two additional words (four bytes)
appended to the end of each record.
If you have specified RECSIZE the records are padded with blanks or truncated as
necessary to make them the specified size. If the specified size is an odd number, one
is added to it to make it an even number. The two additional words are then added.
The final length (in bytes) of the records written to the file is the specified length plus
four (or five, if the record is odd).
If you have not specified RECSIZE, the records are padded with blanks or truncated as
necessary to make them as long as the specified block size. If the specified block size is
an odd number, one is added to it to make it an even number. The final length (in
bytes) of the records written to the file is the specified block size plus four (or five if
block size is odd).
The first word contains the number of the file received from the remote system that
contains the record. The numbers begin with 0 (zero) and are incremented by 1 (one)
for each file received. The numbers are reset to 0 with each RECEIVE command. You
may find the file number useful for separating multiple files written to the same print
file.
The second word contains the number of bytes in the record before any padding or
truncation occurred (the original record length). You can use the second word to
determine the number of bytes of data in each record.
Writing to Other Types of Files
If the print file is any type of file other than an unstructured disk file, no additional
bytes are appended to the records. For magnetic tape files, an EOF is written at the
end of each file. Two EOFs are written at the end of the last file. The last file is the last
file received in a single RECEIVE command.