Purpose
Use the MOde subcommand to define
how bits of data are to be transmitted.
Format
>>-MOde--+-B-+-------------------------------------------------><
+-C-+
'-S-'
Parameters
- B
- Sets the block mode. In block mode, data is transmitted as a series
of data blocks, preceded by one or more header bytes. Block mode preserves
the logical record boundaries of the data set or file. When MOde is
set to B, the data transfer type must be EBCDIC.
Specifying MOde
B is equivalent to specifying the BLock subcommand.
- C
- Sets the compressed mode. In compressed mode, data is transmitted
as a series of data blocks, preceded by one or more header bytes.
Compressed mode preserves the logical record boundaries of the data
set or file. In compressed mode, data is transmitted without repetitive
characters and blanks. When MOde is set to C, the data transfer type
must be EBCDIC.
Note: Because additional processing time is required
for both the sender and receiver to compress or decompress the data,
evaluate the time factor before you compress a file.
Specifying
MOde C is equivalent to specifying the COMpress subcommand.
- S
- Sets the stream mode. In stream mode, data is transmitted as a
stream of bytes. Any data transfer type can be used with stream mode.
Stream mode is efficient because data block information is not transferred.
Specifying MOde S is equivalent to specifying the STREam subcommand.
Usage
- To use MOde C, the receiving host must support the compressed
data mode.
- Data compression increases CPU processing costs even if the amount
of data transferred is not large.
Context
Tip: Use MODE B or MODE C in conjunction with a CHKConfidence
value of TRUE in FTP.DATA to improve detection of
incomplete file transfers.