Data Transformation Engine FTP Adapter Reference Guide

Chapter 3 - FTP Commands List of Commands
FTP Adapter Reference Guide
19
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
Specify the password that authenticates the user name.
This parameter must be followed by @ if you are also
specifying
ftp_host.
ftp_host
Specify the FTP server name or address to which to
connect. If not specified, the default of localhost is
assumed.
:ftp_port
The port name or number to use for connection
dir/
Specify the directory path for the file. The ellipsis ()
indicates this field can repeat, depending on your
directory structure.
filename
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.
;type=xfer_type
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).