The SERVERPORT statement specifies the port number of the remote FTP server.
Supported Job Types
This statement is optional for the following job types:
Syntax
This statement has the following format:
SERVERPORT port
Specifies the port number of the remote server.
Limits: 0-65535
Default: 21
Example: Download a UNIX File
This example downloads a file from a UNIX server with IP address 172.16.0.0 and port 5222 to another UNIX computer:
AGENT UNIXAGENT USER test SERVERADDR 172.16.0.0 SERVERPORT 5222 TRANSFERDIRECTION D TRANSFERCODETYPE A REMOTEFILENAME /export/home/test/ftpdata/textfile1 LOCALFILENAME /export/home/test/ftpdata/folder/textfile1
Example: Download a Windows File
This example downloads a file from a Windows server with IP address 172.31.255.255 and port 23 to another Windows computer:
AGENT WINAGENT USER test SERVERADDR 172.31.255.255 SERVERPORT 23 TRANSFERDIRECTION D TRANSFERCODETYPE A REMOTEFILENAME c:\qatest\ftpdata\textfile1 LOCALFILENAME 'c:\qatest\ftpdata\D folder\textfile1'
Example: Download a QSYS.LIB EBCDIC-Encoded File
This example downloads an EBCDIC-encoded file in the QSYS file system from an i5/OS server to another i5/OS system. The file names are specified in the path format.
AGENT I5AGENT USER test SERVERADDR i5agent SERVERPORT 5222 TRANSFERDIRECTION DOWNLOAD TRANSFERCODETYPE E LOCALFILENAME /QSYS.LIB/FTPLIB.LIB/DOWNLOAD.FILE/DATA.MBR REMOTEFILENAME /QSYS.LIB/DATALIB.LIB/DATAFILE.FILE/DATA.MBR
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|