I have a customer who is attempting to send data to my company via FTP, from an AS400. The customer maintains that all usernames and passwords are converted to upper-case by the AS400 FTP client. This is a deal-breaker on my end.
In addition to this, I would like the customer to use a temporary file name while data is being transmitted, then rename the file once the transfer is complete. The customer states that this is impossible on the AS400.
These limitations seem bogus to me... there must be FTP clients on the AS400 which do not suffer from the inability to connect to servers which use case sensitive user names or pass FTP transfer status back to the calling program, but I have no experience on the AS400 platform, so I don't really have a leg to stand on to justify my position.
Can anyone recommend an FTP client on AS400 with the following features:
- Capable of connecting to a server which uses lower-case user names.
- Can be launched and controlled from within a script or batch file
- Capable of returning an error code signifying success or failure of a file transfer
- Doesn't cost an arm and a leg
The AS/400 FTP client certainly supports lowercase usernames and passwords, the ability to move files after transfer as well as the ability to be scripted. It has pretty much the same features as any other command line ftp client.
Here's an IBM example for scripting the FTP client: Complex example: Batch FTP
Have the IBM guy search for Scott Klement FTPAPI. It's an RPG service program that makes scripting FTP - especially error handling. I think it superior to batch scripting.
If you aren't adverse to some Java coding, the Apache Commons Net libraries supports IBM i connections.