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 <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzaiq/rzaiqquote.htm">QUOTE</a>subcommand which allows you to send commands for execution on the FTP server. These subcommand include <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzaiq/rzaiqrcmd.htm">RCMD</a>for remote command execution. This command could then call/submit a program.
Bruce Vining
Last Wiki Answer Submitted: March 11, 2008 11:05 am by Denny Cherry64,520 pts.
All Answer Wiki Contributors: Denny Cherry64,520 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
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 .
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.