Command Stage Help

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
jshurak
Participant
Posts: 74
Joined: Mon Jan 09, 2006 12:39 pm

Command Stage Help

Post 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?
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post 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.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
jshurak
Participant
Posts: 74
Joined: Mon Jan 09, 2006 12:39 pm

Post 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.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post 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.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply