IBM FTP Adapter manual Ignore -I or -IGNORE, Keep Server -KS

Page 21

Chapter 3 - FTP Commands

List of Commands

Ignore (-I or -IGNORE)

The Ignore command (-Ior -IGNORE) allows specified FTP error codes to be ignored by the adapter.

-IGNOREerror_code[:error_code…]

Option

Description

error_code

Specify the FTP error codes to be ignored by the

 

adapter. A colon (:) must separate multiple error

 

codes.

For example, if you specified the command:

-I 450:550

the adapter ignores errors of type 450 (file busy) and errors of type 550 (file not available) and returns a zero-length file to the map. A list of error codes appears in RFC 959 (beginning on page 37 of the document at http://www.ietf.org/rfc/rfc0959.txt).

Keep Server (-KS)

Use the Keep Server adapter command (-KS) to specify in a map rule that when retrieving a file from an FTP server, it should not be deleted after transfer.

This option should be used if this behavior is desired when using the GET mapping

function. When invoking the adapter from an input card, the same behavior can be accomplished through the card property, OnSuccess, by setting it to Keep.

This is an optional command.

-KS

For example:

-KS-URLftp://user:pass@server/file.txt

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 1

Image 21
Contents FTP Adapter Reference Guide Document History Part Product Version Published Number Contents Troubleshooting Related References About This DocumentFTP Adapter OverviewSystem Requirements About Sockets Access to International VANsIAaliascardnum OAaliascardnum Command AliasList of Commands FTP CommandsLSsorttype Audit -A or -AUDIT Account -AC or -ACCTClient Certificate Password -CPASS Certificate Authority -CAClient Certificate -CERT Code Page Remote -CPR Code Page Local -CPLOpen Site Transparent User Userfw Userfwpass Firewall Connection Method URL -FW or -FIREWALLFtpuser, Pass ftppass Adapter Behavior when -FIREWALL Command PresentOpen Userlogon or User URL SyntaxTokens Replaced with FTP URL -URL Ftpext-m1st-02.txt Keep Server -KS Ignore -I or -IGNOREList Option -LS Passive Mode -PV or -PASV Port Mode -PT or -PORTMake Directory -MKD Private Key Password -KPASS Private Key -PKEYQuantity -QTY Number of files to be retrieved by the adapter Site -SITESSL Encryption Strength -STR SSL Protocol -SPROTOStage -STG or -STAGE WIN32 System -SYSTrace -T or -TRACE Data Sources Syntax SummaryData Targets Using FTP Adapter Commands URL SyntaxExamples Syntax Summary URL Syntax URL Encoding Adapter Audit Log TroubleshootingSample FTP Adapter Trace File Adapter Trace FileTroubleshooting Adapter Trace File Messages Appendix a Return Codes and Error MessagesAppendix a Return Codes and Error Messages Index Index