Hi All,
Created dos bat file run DataStage job:
@echo off
SET DsJob=E:\Ascential\DataStage\Engine\bin\dsjob.exe
Dsjob -run -mode NORMAL PLQ StateCodeHash
Error message:
D:\TEMP>DWTEST.bat
'Dsjob' is not recognized as an internal or external command,
operable program or batch file.
BUT if I run from dos command line:
E:\Ascential\DataStage\Engine\bin\dsjob -run -mode NORMAL PLQ StateCodeHash
It works - run the job fine!!
Any ideas will be appreciated.
Bryceson
DOS Bat File to DataStage Job
Moderators: chulett, rschirm, roy
Hi,
Your problem is that after you define the variable you must address it enclosed with % signs, much like DS job parameters in some cases.
so in your case:
should work.
By the way writing any lower/capital version of the DsJob variable is the same since unlike DS batch scripts are not cases sensitive.
IHTH,
Your problem is that after you define the variable you must address it enclosed with % signs, much like DS job parameters in some cases.
so in your case:
Code: Select all
@echo off
SET DsJob=E:\Ascential\DataStage\Engine\bin\dsjob.exe
%DsJob% -run -mode NORMAL PLQ StateCodeHash
By the way writing any lower/capital version of the DsJob variable is the same since unlike DS batch scripts are not cases sensitive.
IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.
Search before posting:)
Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Time is money but when you don't have money time is all you can afford.
Search before posting:)
Join the DataStagers team effort at:
http://www.worldcommunitygrid.org