Previous Topic: TRANSFERCODETYPE Statement—Specify the FTP FormatNext Topic: TRIG_COND Statement—Specify a Condition to Monitor


TRANSFERDIRECTION Statement—Specify the File Transfer Direction

The TRANSFERDIRECTION statement specifies the file transfer direction between the agent computer and the remote server.

Supported Job Types

This statement is required for the following job types:

Syntax

This statement has the following format:

TRANSFERDIRECTION U|UPLOAD|
                  D|DOWNLOAD
U|UPLOAD

Transfers files from the agent computer to the remote server.

D|DOWNLOAD

Transfers files from the remote server to the agent computer.

Note: DIRECTION is an alias of TRANSFERDIRECTION.

Example: Upload Files

If a wildcard is used in a local file name for upload, the remote file name (the target) must refer to a directory. In this example, the remote file name is specified as the directory /tmp.

AGENT UNIXAGENT
USER test
SERVERADDR hprsupp
SERVERPORT 5222
TRANSFERDIRECTION U
TRANSFERCODETYPE A
REMOTEFILENAME /tmp
LOCALFILENAME /export/home/test/ftpdata/text*