Previous Topic: SEARCHRANGE Statement—Specify the Range to be SearchedNext Topic: SERVERNAME Statement—Specify a Server to Run the PeopleSoft Job


SERVERADDR Statement—Specify a Remote Server Name

The SERVERADDR statement specifies a remote server name.

Supported Job Types

This statement is required for the following job types:

Syntax

This statement has the following format:

SERVERADDR server
server

Specifies the DNS name or IP address of a remote server. serverport is a server port number, which is mandatory for the MF_JOB type but is not required for other job types.

Limits: Up to 100 characters; case-sensitive

Example: 172.24.36.107:7010 (IPv4) or [0:0:0:0:0:FFFF:192:168:00:00]:7010 (IPv6)

Example: Download a File from a UNIX Computer

This example downloads a UNIX file from the hpsupport server with port 5222:

AGENT UNIXAGENT
USER lmla
SERVERADDR hpsupport
SERVERPORT 5222
TRANSFERDIRECTION D
TRANSFERCODETYPE A
REMOTEFILENAME /u1/test/ftpdata/textfile
LOCALFILENAME /export/home/test/test1

Example: Download a File from a UNIX Computer to a Windows Computer

This example downloads a file from a UNIX server with IP address 172.16.0.0 and port 21 to a Windows computer:

AGENT WINAGENT
USER ftpuser
SERVERADDR 172.16.0.0
SERVERPORT 21
TRANSFERDIRECTION D
TRANSFERCODETYPE A
REMOTEFILENAME /u1/test/ftpdata/textfile
LOCALFILENAME c:\test

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