Hello.
I have a very simple .bat file with the following DOS commands:
@ECHO OFF
dsjob -server myServerName -user myUserName -password myPassword -run myProjectname myJobName
CLS
EXIT
When I execute this .bat file on the ETL server via a Remote Desktop Connection, the .bat file executes successfully. However, if I attempt to execute the .bat file from my Desktop that's on the same network, nothing happens. After reading the Server Job Developer's Guide page 19-140, I was lead to believe I could execute a DSJOB command from a remote computer on the network...is this not the case? What am I missing?
Any help is much appreciated.
Execute DSJOB Command Remotely
Moderators: chulett, rschirm, roy
Execute DSJOB Command Remotely
I don't know signatures...
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Ray,
Thanks for the response. I modified the .bat file a bit so that it would echo the command and pause so I could see the resulting message. The message is as follows:
"'dsjob' is not recognized as an internal or external command, operable program or batch file."
Does this mean the dsjob.exe has to be present on both computers on the network?
Thanks for the response. I modified the .bat file a bit so that it would echo the command and pause so I could see the resulting message. The message is as follows:
"'dsjob' is not recognized as an internal or external command, operable program or batch file."
Does this mean the dsjob.exe has to be present on both computers on the network?
I don't know signatures...
Thanks ArndW. Explicitly coding the location of my local dsjob.exe did the trick. As a helpful tip for anyone else that may come across this issue, this is exactly what my dsjob command line looks like now:
"C:\Program Files\Ascential\DataStage7.5.2\dsjob" -server myServerName -user myUsername -password myPassword -run myProject myJobName
I had to include the path in quotes because of the fact there's a space in the pathname (I think). The .bat file executes perfectly now.
"C:\Program Files\Ascential\DataStage7.5.2\dsjob" -server myServerName -user myUsername -password myPassword -run myProject myJobName
I had to include the path in quotes because of the fact there's a space in the pathname (I think). The .bat file executes perfectly now.
I don't know signatures...
Yup. Thank you Windows "long filenames".dec1177 wrote:I had to include the path in quotes because of the fact there's a space in the pathname (I think).
![Wink :wink:](./images/smilies/icon_wink.gif)
Or you could have used the original recipe 8.3 "short" name without quotes, which is (more than likely) "Progra~1".
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers