Previous Topic: Set Communications Parameters

Next Topic: How to Use the Retrieve File Command


How to Use the Send File Command

Use the Send File command at the command prompt to send a copy of a file on the local system to a file on a remote system.

The -c1 option specifies that this is a Send File transfer. The local file is indicated by the LOCAL_FILE parameter. The file on the remote system is indicated by the REMOTE_FILE parameter.

Example 1:

In the following example, the XCOM62 command is used. The configuration file is MYCONFIG.CNF, the local file is named TESTA.AAA, the remote file is named TESTB.BBB, and the transferred file replaces a file on the remote system that already exists. The PROTOCOL parameter specifies the protocol as SNA. All other necessary parameters are read from the default configuration file, XCOM.CNF.

XCOM62 -c1 -f MYCONFIG.CNF LOCAL_FILE=TESTA.AAA REMOTE_FILE=TESTB.BBB
FILE_OPTION=REPLACE PROTOCOL=SNA

Note: The example above appears on more than one line here but is to be typed at the command prompt as a continuous command. Press Enter only after you have typed in all of your command information.

Example 2:

In the following example, the XCOMTCP command is used. The configuration file is MYCONFIG.CNF, the local file is named TESTA.AAA, the remote file is named TESTB.BBB, and the transferred file replaces a file on the remote system that already exists. The PROTOCOL parameter specifies the protocol as TCP/IP. All other necessary parameters are read from the default configuration file, XCOM.CNF.

XCOMTCP -c1 -f MYCONFIG.CNF LOCAL_FILE=TESTA.AAA REMOTE_FILE=TESTB.BBB
FILE_OPTION=REPLACE PROTOCOL=TCPIP

Note: The example above appears on more than one line here but is to be typed at the command prompt as a continuous command. Press Enter only after you have typed in all of your command information.

The Send File command parameters:

FILE_OPTION

LOCAL_FILE

REMOTE_FILE