mode - UDM Command

Syntax

mode [type={text|binary}] [trim={yes|no}]

Description

The mode command sets the current transfer mode.

The type parameter specifies the current mode type:

  • If text is the current mode type, file transfers are treated as text and codepage translation takes place.
  • If binary is the current mode type, files are transferred as binary.

The trim parameter specifies whether or not trailing spaces are trimmed (removed) from each record / line in a text transfer.

Issuing the mode command without parameters displays the current transfer mode.

Parameters

Parameter

Description

type=text | binary

Sets the type of transfer.

  • If the transfer type is text, UDM performs text translation on the data between the codepages for the primary and secondary servers.
  • If the transfer type is binary, UDM sends the source data over as is, with no translation.

Default is binary when a new session is opened.

trim=yes | no

Sets whether or not to trim trailing spaces during a text transfer.

  • If the value is yes, spaces at the end of each line (record) are removed from the data when it is written.
  • If the value is no, spaces at the end of each line (record) are not removed.

Default is no when a transfer session is initiated.

Example

To set the current transfer type to text transfers: