Problem solve Get help with specific problems with your technologies, process and projects.

Run FTP in batch

We have a requirement to run FTP in batch, but with the facility to test the FTP return codes (as with interactive FTP) as and when they occur, and to take corrective or alternate action depending on the FTP return codes. From what I can see, both interactive and batch FTP uses the same 'FTP Kernel'. Do you know where I can find the specifications for this 'kernel'?

If I'm not mistaken, it was originally based on the same as all the other FTP kernels -- RFC 959 published in 1985. There are FTP API's located in the Information Center. You can also over ride the file output in a batch routine to a flat file. After you run your FTP script, you can read that file to check for your FTP error codes and run recovery routines accordingly. Tim Granatir wrote some pretty nice tips on FTP resources on the site. Search for FTP tips on the Search400.com site and you will see them.


The Best Web Links: tips, tutorials and more.

Ask your OS/400 questions -- or help out your peers by answering them -- in our live OS/400 discussion forums.

Ask the Experts yourself: Our OS/400 gurus are waiting to answer your questions.

Check out this Search400.com Featured Topic: Top 10 expert tips for OS/400

Dig Deeper on FTP

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.