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

25 pts.
Tags:
AS/400 FTP
iSeries networking
How can I execute a batch job on a network server from an AS400 FTP session?

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Gilly400
    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.
    23,730 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following