Executing a command from the dos shell using the before subr

Archive of postings to DataStageUsers@Oliver.com. This forum intended only as a reference and cannot be posted to.

Moderators: chulett, rschirm

Locked
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Executing a command from the dos shell using the before subr

Post by admin »

Hello all,

I am trying to use the before job subroutine ExecDOS to run a perl script to tidy up an input file prior to processing it. I get the following error
message:

pabx.BeforeJob (ExecDOS): Error when executing command: perl C:perlscriptsPABX_to_csv.pl
*** Output from command was: ***
perl is not recognized as an internal or external command, operable program or batch file.

I try writing a batch file test, which contains perl C:perlscriptsPABX_to_csv.pl and I get the following error message:

pabx.BeforeJob (ExecDOS): Error when executing command: "test.bat"
*** Output from command was: ***
pabx.bat is not recognized as an internal or external command, operable program or batch file.

Anyone have any ideas why the command is not recognised?

Thanks in advance,

Simon Vollett
Locked