IBM FTP Adapter manual Ftpext-m1st-02.txt

Page 20

Chapter 3 - FTP Commands

List of Commands

OptionDescription

Note When sending an FTP request to the AS/400, the file must first be created on the AS/400 in order for the len parameter to pad the record correctly.

I

L8

D

D1

D2

D3

Image (binary)

Local 8-bit types (usually equivalent to I)

Directory (file names only)

Directory (file names only)

Directory (server-defined format)

Directory (easily parsed line format, as defined in Internet draft draft-bernstein-eplf-02.txt)

 

D4

Directory (machine-readable list format as

 

 

defined in Internet draft draft-ietf-

 

 

ftpext-m1st-02.txt)

+

Append the transferred data to the existing file.

Note An additional forward slash (/) is required to separate the user and host parameters from file and transfer type, if specified.

Example

The following is an example of the input card command in the Map Designer:

-T –URL FTP://sales@host/c:/forms/myfile.txt

The command causes the myfile.txt file to be retrieved from a remote host named sales. The –Tadapter command specifies that the adapter create a trace

file to report adapter activity information during the FTP process.

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

2 0

Image 20
Contents FTP Adapter Reference Guide Document History Part Product Version Published Number Contents Troubleshooting About This Document Related ReferencesSystem Requirements FTP AdapterOverview Access to International VANs About SocketsCommand Alias IAaliascardnum OAaliascardnumFTP Commands List of CommandsLSsorttype Account -AC or -ACCT Audit -A or -AUDITClient Certificate -CERT Client Certificate Password -CPASSCertificate Authority -CA Code Page Local -CPL Code Page Remote -CPRFirewall Connection Method URL -FW or -FIREWALL Open Site Transparent User Userfw UserfwpassAdapter Behavior when -FIREWALL Command Present Ftpuser, Pass ftppassOpen URL Syntax Userlogon or UserTokens Replaced with FTP URL -URL Ftpext-m1st-02.txt Ignore -I or -IGNORE Keep Server -KSList Option -LS Make Directory -MKD Passive Mode -PV or -PASVPort Mode -PT or -PORT Quantity -QTY Private Key Password -KPASSPrivate Key -PKEY Site -SITE Number of files to be retrieved by the adapterStage -STG or -STAGE SSL Encryption Strength -STRSSL Protocol -SPROTO System -SYS WIN32Trace -T or -TRACE Syntax Summary Data SourcesData Targets Examples Using FTP Adapter CommandsURL Syntax Syntax Summary URL Syntax URL Encoding Troubleshooting Adapter Audit LogAdapter Trace File Sample FTP Adapter Trace FileTroubleshooting Adapter Trace File Appendix a Return Codes and Error Messages MessagesAppendix a Return Codes and Error Messages Index Index