6

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

migrated from stackoverflow.com Jun 30 '11 at 1:10

This question came from our site for professional and enthusiast programmers.

8

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

  • Thanks JamesA. This is why I love Stack Overflow... I'm working in a Linux shop, and even the best programmers here wouldn't have been able to give me that answer... yet 20 minutes later, I've got exactly what I need. – Barton Chittenden Jun 29 '11 at 21:00
6

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.

  • +1 For Scott Klement's FTPAPI although personally I prefer to use the batch ftp method or Java if I need more control/capability. – jamesallman Jun 29 '11 at 21:08
1

If you aren't adverse to some Java coding, the Apache Commons Net libraries supports IBM i connections.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.