Parameterize path of command for in execute command activity

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
opdas
Participant
Posts: 115
Joined: Wed Feb 01, 2006 7:25 am

Parameterize path of command for in execute command activity

Post by opdas »

Hi
We have a shell script which is executed after a job successfully completed. The script is executed through "Execute Command Activity". But the problem is we have to pass the full path of the script in the "Command:".
We want to parameterize the path of the script which would change when we go from development to production.
How to achieve this as parameterizing of the executable path is not allowed.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Try putting 'sh' or 'ksh' as the command and then your complete command with parameterized path in the Parameters area.
-craig

"You can never have too many knives" -- Logan Nine Fingers
opdas
Participant
Posts: 115
Joined: Wed Feb 01, 2006 7:25 am

Post by opdas »

Hi,
Thanks for you reply.

It works like charm.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Great! Please mark your topic as Resolved then.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply