Previous Topic: REMOTECLASSNAME Statement—Specify a Remote Class NameNext Topic: REMOTEFILENAME Statement—Specify Remote Filename (FTP Job)


REMOTEDIR Statement—Specify a Remote Directory

The REMOTEDIR statement specifies the directory on a remote server involved in a secure file transfer.

Supported Job Types

This statement is required for the following job types:

Syntax

This statement has the following format:

REMOTEDIR directory
directory

Specifies the file's remote source directory (if downloading) or the file's remote destination directory (if uploading).

Limits: Up to 256 characters; case-sensitive

Example: Upload Multiple Files from the Agent Computer to a Directory on a Remote Server

This example uploads the files in the c:\temp\upload directory to the /u1/build/uploaded directory on the aixunix server. The job uses the Secure File Transfer Protocol (SFTP). Since the LOCALNAME statement contains a wildcard, the REMOTENAME statement is not specified.

AGENT WINAGENT
SERVERADDR aixunix
TRANSFERDIRECTION UPLOAD
USER causer
REMOTEDIR /u1/build/uploaded
LOCALNAME c:\temp\upload\*