Do you have byany chance 60 seconds timeout set for RunAndWait ? In other words is it like RunAndWait "mybatch", "", 60, pid If this is the case set timeout to 0 for infinite waiting. : Hi, : I have a job scheduled to run every 15 minutes. : In the JAL script I use the runandwait command to start a batch : file. : This batch file first starts an EDI interface to collect customer order files : then if certain files exist, an ftp connection is made to an as400. : After transferring the files, a program is called to process the transferred : files. : It seems now that whenever the program call takes more than one minute, the : batch file processing continues : and then ends, leaving the FTP job running on the As400. : I tried using Start /W to start the ftp command but without luck. : I did some testing with a simple batch file that just start an ftp connection : and : calls a program on the as400. This program does nothing else than wait for 5 : minutes. : When I start the batch file, the ftp program call is done and after : approximately one : minute the batch file ends, leaving the ftp job to run until the 5 minutes : are over. : Even after adding the START /W before the ftp the processing is the same. : Is there something i'm missing.... : Thanks for your help.
|