Hi
I have to place a file from target directory to source directory before the job run is complete, for which i'm using a DOS script and running it in the before job sub routine.
while running the job , its throwing an error which says
BeforeJob (ExecDOS): Error when executing command: H:\path1\Script\script1 H:\path2\Target\HALO\\smp17.txt H:\path3\Source\HALO\\smp17.txt
*** No output from command ***
Job stopped - before-job routine returned error: Error 1 returned from BEFORE routine DSU.ExecDOS
where script1 is the dos script
H:\path2\Target\HALO\\smp17.txt is the file in the target dir
H:\path3\Source\HALO\\smp17.txt is the file in the source dir.
However the file is actually getting placed in the source directory as expected but the job is getting aborted after that.
Appreciate you help
Thanks,
Svengiyil
error using Before job sub routine
Moderators: chulett, rschirm, roy
I just got my solution from the reply given by Arndw in the below link
viewtopic.php?t=103857&highlight=Job+st ... SU.ExecDOS,
However i have a concern here, i finally specified
H:\path1\Script\script1 H:\path2\Target\HALO\\smp17.txt H:\path3\Source\HALO\\smp17.txt H:\ |dir
the path mentioned above(source,target and script path) will not be hardcoded when it is moving into production, so will there be a problem in hardcoding H:\ |dir as it is?
Thanks,
Svengiyil
viewtopic.php?t=103857&highlight=Job+st ... SU.ExecDOS,
However i have a concern here, i finally specified
H:\path1\Script\script1 H:\path2\Target\HALO\\smp17.txt H:\path3\Source\HALO\\smp17.txt H:\ |dir
the path mentioned above(source,target and script path) will not be hardcoded when it is moving into production, so will there be a problem in hardcoding H:\ |dir as it is?
Thanks,
Svengiyil
The solution in the link was to add a " | dir" not "<dir> | dir". The reason they had a "C:" is because it is the target directory for the unzip command. Have you tried running your job without the last "H:/"?Svengiyil wrote:I just got my solution from the reply given by Arndw in the below link
viewtopic.php?t=103857&highlight=Job+st ... SU.ExecDOS,
However i have a concern here, i finally specified
H:\path1\Script\script1 H:\path2\Target\HALO\\smp17.txt H:\path3\Source\HALO\\smp17.txt H:\ |dir
the path mentioned above(source,target and script path) will not be hardcoded when it is moving into production, so will there be a problem in hardcoding H:\ |dir as it is?
Thanks,
Svengiyil