IBM FTP Adapter manual Ftp Url -Url, ftpuser, ftphost, FTP Commands, List of Commands, Option

Models: FTP Adapter

1 40
Download 40 pages 12.42 Kb
Page 19
Image 19
FTP URL (-URL)

Chapter 3 - FTP Commands

List of Commands

FTP URL (-URL)

The FTP URL adapter command (-URL)is required for connection to an FTP

server. Specify the file name(s) to be retrieved (adapter source) or created/appended (adapter target).

-URL[FTP:[//]][ftp_user[:ftp_pass]@][ftp_host[:ftp_port]] [/[/]][dir/[dir/…]] [filename][;type=xfer_type[+]]

Option

Description

FTP:

Specify as a connection to an FTP server. If not

 

specified, FTP: is assumed, along with the //. Another

 

/ is required to separate the user and host parameters

 

from file and transfer type, if specified.

 

 

ftp_user

Specify the user name to connect to the FTP server.

 

Unless you are also specifying a password, this

 

parameter must be followed by @ if you specify

 

ftp_host.

 

 

:ftp_pass

ftp_host

:ftp_port

dir/

filename

;type=xfer_type

Specify the password that authenticates the user name. This parameter must be followed by @ if you are also

specifying ftp_host.

Specify the FTP server name or address to which to connect. If not specified, the default of localhost is assumed.

The port name or number to use for connection

Specify the directory path for the file. The ellipsis () indicates this field can repeat, depending on your directory structure.

Specify the name of the target file. This is required for an adapter target but optional for an adapter source. If not specified, all files in the path are retrieved.

Specify the transfer type or mode. The supported transfer types vary from server to server. Depending on the server, there may be additional or omitted transfer types. Valid transfer types are:

A[len][!] ASCII

len specifies the optional record length to which to pad or truncate the record.

!indicates no line terminator for the record(s).

F T P A d a p t e r R e f e r e n c e G u i d e

1 9

Page 19
Image 19
IBM FTP Adapter Ftp Url -Url, ftpuser, ftppass ftphost ftpport dir/… filename type=xfertype, FTP Commands, Option