Parameter passing

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
mayods1
Premium Member
Premium Member
Posts: 5
Joined: Mon Dec 11, 2006 3:14 pm

Parameter passing

Post by mayods1 »

Anyone know how to pass parameters to DataStage via a shell script calling dsjob when the parameter value has spaces in it? I.e. Select Name from Customer

As long as there are no spaces in the parameter value, it works fine, but I get a -9999 DSJE_DSJOB_ERROR when I try to pass the parameter value with spaces in it.

Thanks
csrazdan
Participant
Posts: 127
Joined: Wed May 12, 2004 6:03 pm
Location: Chicago IL

Post by csrazdan »

Assume everything I say or do is positive
mctny
Charter Member
Charter Member
Posts: 166
Joined: Thu Feb 02, 2006 6:55 am

Post by mctny »

did you try to pass those parameters within a single or double quote?
Thanks,
Chad
__________________________________________________________________
"There are three kinds of people in this world; Ones who know how to count and the others who don't know how to count !"
csrazdan
Participant
Posts: 127
Joined: Wed May 12, 2004 6:03 pm
Location: Chicago IL

Post by csrazdan »

Double quote.

Following is how your command should look like:

Code: Select all

eval /opt/tools/ds/Ascential/DataStage/bin/dsjob -run -wait -param DsName="Thomos E Edison" -warn 5 Project_Name Job_Name 
Assume everything I say or do is positive
mayods1
Premium Member
Premium Member
Posts: 5
Joined: Mon Dec 11, 2006 3:14 pm

Post by mayods1 »

mctny wrote:did you try to pass those parameters within a single or double quote?
Both
diamondabhi
Premium Member
Premium Member
Posts: 108
Joined: Sat Feb 05, 2005 6:52 pm
Location: US

Post by diamondabhi »

Has this been resolved, could you post the script you are using.
Every great mistake has a halfway moment, a split second when it can be recalled and perhaps remedied.
Post Reply