Page 1 of 1

Command Stage Help

Posted: Thu May 03, 2007 12:45 pm
by jshurak
I've been tasked with creating a job that simply executes 2 dos batch jobs. The jobs must reside on a specific server. Can the Command Stage execute these jobs on the different server?

Posted: Thu May 03, 2007 1:01 pm
by DSguru2B
Can you execute the batch script residing on the remote server from your datastage server, via command line, using rsh? If you can then you definately can specify that command in your execute command stage.

Posted: Fri May 04, 2007 5:57 am
by jshurak
Neither of these servers are running a unix environment. The command stage seems to execute the script, it will output the contents of the script in director, but nothing seems to happen on the remote server.

Posted: Fri May 04, 2007 7:10 am
by DSguru2B
Did you try to get your script running from command line first? If it does not work outside datastage, it will certainly not from within datastage. Get some scripting help if you have to, a lot of resources present on the web. Once it works from command prompt, call it from datastage. It will work then.