Question

  Asked: Mar 10 2008   2:31 PM GMT
  Asked by: Roncadet


How can I execute a batch job on a network server from an AS400 FTP session


AS/400 FTP, iSeries networking

How can I execute a batch job on a network server from an AS400 FTP session?

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



I'm not sure if AS400 FTP has additional commands which a normal FTP server has, but assuming that it doesn't, you pretty much can't. FTP designed to transfer files from server to server (or workstation to server), not for launching applications on the server's OS. I know that one method which is often used is to after the large data has been uploaded, upload another file as a trigger file. The trigger file is usually a very small file. You can then setup a job on the server which looks for this file. If the file doesn't exist then the job does not continue. Once the file exists the rest of the job or application kicks off and processes the file. After the main processing is completed the trigger file is deleted so that the application doesn't run again until the next file is uploaded.

-----------------------------------------------------------------------

The i5/OS FTP client supports the QUOTEsubcommand which allows you to send commands for execution on the FTP server. These subcommand include RCMDfor remote command execution. This command could then call/submit a program.

Bruce Vining
  • AddThis Social Bookmark Button

Browse more Questions and Answers on AS/400.

Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

Gilly400  |   Mar 11 2008  10:33AM GMT

Hi,

I believe Mrdenny is right in saying that you can’t start a job on a server via FTP from an AS/400. The trigger file is certainly an option, you may also be able to use the RUNRMTCMD from the AS/400 - it depends on whether your network server supports it and is configured for it .

Regards,

Martin Gilbert.