Previous Topic: Compress Data for FTPNext Topic: Verify the FTP Job Status


Send Site-Specific FTP Commands to FTP Servers

When you define an FTP job, you can specify one or more commands to execute prior to file transfer. You can use this feature to send site-specific FTP commands to FTP servers.

To send a site-specific FTP command to an FTP server, add the SITECMD statement in the job definition. You can specify multiple SITECMD statements in an FTP job.

Example: Send Two FTP Commands to an FTP Server

This example sends two FTP commands to the FTP server prior to transferring a file:

AGENT FTPAGENT
USER user1
SERVERADDR ftp.example.com
SERVERPORT 21
TRANSFERDIRECTION D
TRANSFERCODETYPE E COMPRESS(8)
REMOTEFILENAME /pub/cazip.exe
LOCALFILENAME /tmp/bla
SITECMD site date
SITECMD site recfm=FB