IBM Using FTP Adapter Commands, URL Syntax, Examples, Syntax Summary, URL FTP//host/c/forms

Models: FTP Adapter

1 40
Download 40 pages 12.42 Kb
Page 31
Image 31
Using FTP Adapter Commands

Chapter 4 - Syntax Summary

Using FTP Adapter Commands

Using FTP Adapter Commands

Use the adapter commands from the Map Designer or Integration Flow Designer as the data source of an input map card and as the data target for an output map card. You can also use the adapter on the command line or in a map rule using the functions GET, PUT, or RUN.

The FTP adapter requires the -URLadapter command for the

GET > Source > Command and PUT > Target > Command settings.

See Chapter 3 - FTP Commands for more information on FTP adapter commands and their syntax. For general information about commands, refer to the Resource Adapters Reference Guide.

Examples

To retrieve the file mine.txt, located on the host computer (no port specified) under c:\forms with no user name or password specified, enter the following command:

-URL FTP://host/c:/forms/mine.txt

The command example would retrieve the entire contents of the forms directory (because the file name is omitted) from the host computer:

-URL FTP://host/c:/forms/

URL Syntax

The syntax for the rest of the URL varies depending on the scheme selected. URL schemes that involve the direct use of an IP-based protocol for a specified host on the Internet use the following common syntax for scheme-specific data:

//user:password@host:port/url_path

Some or all parts of user:password@, :password, :port, and /url_path may

be excluded. The scheme-specific data start with a double slash (//) to indicate that it complies with the common Internet scheme syntax. The user:password component conforms to the following rules:

user An optional user name. Some schemes allow the specification of a user name.

password An optional password. When present, it follows the user name and is separated by a colon. The user name and password are followed by

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

3 1

Page 31
Image 31
IBM manual Using FTP Adapter Commands, URL Syntax, Examples, Syntax Summary, URL FTP//host/c/forms/mine.txt