execute command stage
Moderators: chulett, rschirm, roy
execute command stage
I am calling a script in the execute command stage and would like to parameterize the path of the shell script.
what is the syntax for it?
Thanks
what is the syntax for it?
Thanks
There is a known bug in older versions of DataStage where this does not work. Let us know your version.
Last edited by kduke on Tue Jun 26, 2007 8:44 pm, edited 1 time in total.
Mamu Kim
You can call the command from within a shell. The input box that takes in the command would execute a command to create a new instance of a shell and the parameters would be the path of the command that you want to run.
I do this in windows. For example if I want to execute c:\var_path\mike.exe where the path is dynamic I would set it up like this.
Command input box:
CMD.EXE
Parameters input box:
/C #jpVarPath#mike.exe #jpParam1# #jpParam2#
I do this in windows. For example if I want to execute c:\var_path\mike.exe where the path is dynamic I would set it up like this.
Command input box:
CMD.EXE
Parameters input box:
/C #jpVarPath#mike.exe #jpParam1# #jpParam2#
Mike
Michael my script is in unix box ( /home/folder/filename.sh)michaeld wrote:You can call the command from within a shell. The input box that takes in the command would execute a command to create a new instance of a shell and the parameters would be the path of the command that you want to run.
I do this in windows. For example if I want to execute c:\var_path\mike.exe where the path is dynamic I would set it up like this.
Command input box:
CMD.EXE
Parameters input box:
/C #jpVarPath#mike.exe #jpParam1# #jpParam2#
I tried using CMD.sh in command field and in the parameter field #param# which has the whole path of the script , , but it doesnt work.
"Output from command ====>
SH: line 1: CMD.sh: command not found"
Any idea what am I doing wrong here?
Thanks
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: