Any reason this line would work in a .bat file executed from Windows Explorer but fails when executing the .bat file from the Execute Command stage?
IF %length% == 0 GOTO NOMSG
DataStage Event Detail:
Reply=255
Output from command ====>
GOTO was unexpected at this time.
Thanks!
Problem running a .bat file from Command Stage
Moderators: chulett, rschirm, roy
Re: Problem running a .bat file from Command Stage
Is it executing when you executed from dos prompt?
space might be the reason i guess!
IF %length%==0 GOTO NOMSG
DS User
Code: Select all
IF %length% == 0 GOTO NOMSG
IF %length%==0 GOTO NOMSG
DS User