I have been trying to transfer a .csv file from IFS on AS400A to AS400B without success. Using lotusscript scheduled agent that runs when new mail arrives. Every step executes correctly until I run the "Shell command".
1) Can shell command work from a scheduled agent? For it works when performed manually.
2) Is the Save Restore command correct?
3) The error I receive from domino console is (53) File not found at line 34 Line 34 is the "Shell(cmd)" line
4) The file is in the /home/ftp folder, which I see through iseries navigator.
cmd = "SAVRST RMTLOCNAME(GCM400) OBJ(" + nGetHireFolderLocation & o.name + ")"
taskId% = Shell(cmd)
If taskID% = 33 then
Print " FTP command to transfer file has been executed...."
' Wait 10 seconds before continuing, in order to ensure that the file transfer is finished
nGetHireFolderLocation returnes = "/home/ftp"
o.name = THE FILE NAME (*.csv)