Sequenec ExecCommand

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
rcdhawan
Participant
Posts: 15
Joined: Wed Sep 12, 2007 7:04 pm

Sequenec ExecCommand

Post by rcdhawan »

In the ExecCommand Stage of Sequenece, in the command tab I have to excute this command as below. but I want to parametrize the "/home/datastage/run/" part as this will vary from dev to UAT enviroment. Please advice.

/home/datastage/run/copy.sh
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Use 'sh' or 'ksh' as the Command and then put the entire parameterized command itself in the Parameters box.
-craig

"You can never have too many knives" -- Logan Nine Fingers
shamshad
Premium Member
Premium Member
Posts: 147
Joined: Wed Aug 25, 2004 1:39 pm
Location: Detroit,MI

Post by shamshad »

In the Sequencer you can execute the file by using something like this

$EXECUTE_DIR:"/execute_something.sh "

If EXECUTE_DIR is a Environment variable, you can have the values defined for different environments accordingly. One can also pass the information using parameter from Sequencer if you don't want to use Environment Variable.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Or you can simply put the shell executable (e.g. /bin/sh) or a source command in the Command field, and the entire command in the Parameters field.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply