IBM FTP Adapter manual System -SYS, WIN32

Page 27

Chapter 3 - FTP Commands

List of Commands

During an upload, the FTP server generates a uniquely-named temporary file. When the transfer has completed successfully, the original file is deleted and the temporary file is renamed. For this process to succeed you must have access rights associated with your user ID to delete and rename files, and if the optional file name (file_name) is omitted the server must provide a correct Store Unique (STOU) response. The adapter issues a warning if the server response cannot be interpreted. It is recommended that you run a preliminary test to ensure that the process completes successfully.

-STAGE[file_name]

OptionDescription

file_name Specify a unique file name for the temporary file. This option is especially useful if a server does not supply unique file names.

System (-SYS)

Use the System adapter command (-SYS) to specify the system type when the adapter cannot accurately determine the system type of the FTP server.

Note The FTP server system type is not necessarily the same as the operating system of the machine it is running on. Some Windows FTP servers use UNIX conventions. If in doubt, consult your server documentation or use the dir command and then

view the results.

-SYS {WIN32UNIXUNKNOWN}

Option

Description

WIN32

The server follows Windows conventions. For example,

 

directories in pathnames are separated by a backward

 

slash (\).

 

 

UNIX

The server follows UNIX conventions. For example,

 

directories in pathnames are separated by a forward

 

slash (/).

 

 

UNKNOWN

Because the platform is not known, exercise generic

 

code. Do not perform anything that is specific to a

 

platform.

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 7

Image 27
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