View Full Version : Remote Commands
01-01-1995, 02:00 AM
Can anyone explain to me how I can run an as400 command on a remote system. I need one of our monthend jobs to send files to another as400 and run a program over the data sent. I can FTP the files but I can't run the program. We're trying to avoid users having to sign on to the 2nd box. Help! Thanks.
06-09-2000, 07:34 AM
Patricia, you may want to try RUNRMTCMD. Best Regards Bernd
06-09-2000, 07:43 AM
In your FTP script after you have FTPd the files insert a statement QUOTE RCMD CALL MYLIB/MYPGM You may need to manipulate the Library List from within MYPGM alternatively you may be better off submitting a batch job and terminate the FTP Session. ALL remote AS/400 commands are preceded by QUOTE RCMD in FTP. Hope this helps, Mick.
06-09-2000, 07:46 AM
Other than using RUNRMTCMD, you may also use SBMRMTCMD to submit your command on a scheduled time or once a particular job is completed. There is another way too, using SBMNETJOB. For this you need to have a Phisical file on the remote system. The physical file should be a one field file of 80Char Lenght(Or the length you want for your command string). The file must have only one record, which has the value for your command string. The command string must be preceded by '// ' (two slashes followed by a space) Hope this helps Elan
06-09-2000, 09:59 AM
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.