Passing parameters in Execute cmd stage

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
arsheshadri
Participant
Posts: 78
Joined: Wed Oct 26, 2005 6:12 am

Passing parameters in Execute cmd stage

Post by arsheshadri »

Hi,

I am trying to run a shell script (sample.ksh) in a Job Sequence using "Execute command activity"

Here I need to parameterise the Path of my shell script.

If I give #HOM_DIR#/sample.ksh, I am getting an error saying "Executable path cannot contain parameters (I have created a job parameter with the name HOM_DIR).

Please let me know how can I specify a parameter to run my script.

Thanks & Regards
Sheshadri
Thanks & Regards
Shesha
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

In the Execute Command Stage:

Command:

sh

Parameters:

#HOM_DIR#/sample.ksh
vikasjawa
Participant
Posts: 13
Joined: Tue Aug 29, 2006 3:20 am
Location: Gurgaon

Re: Passing parameters in Execute cmd stage

Post by vikasjawa »

hi,
As this is a ksh script, just confirm that you are using 'ksh -x' in the Command text box under ExecCommand Tab of the Execute Command Activity and #HOM_DIR#/sample.ksh along with the parameters your scripts needs in Parameters text box.
Vikas Jawa
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:? 'ksh' is fine by itself, no need for the '-x' option.
-craig

"You can never have too many knives" -- Logan Nine Fingers
arsheshadri
Participant
Posts: 78
Joined: Wed Oct 26, 2005 6:12 am

Post by arsheshadri »

[quote="chulett"]:? 'ksh' is fine by itself, no need for the '-x' option.[/quote]

Thanks everyone..it's working..my problem is solved.

Sheshadri
Thanks & Regards
Shesha
Post Reply