How to pass two values from parameter

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
hari_dsx
Participant
Posts: 3
Joined: Thu Jan 24, 2008 4:00 am
Location: Bangalore

How to pass two values from parameter

Post by hari_dsx »

Hi,

I have to pass two values from parameter file.
The environment variable
$pSiteConvGrp = TEXAS, DETROIT

My source database is oracle.

SELECT * FROM STAGE_EQUIP_MSTR_DETL_SPEC WHERE SITE_CONV_GRP in ('#$pSiteConvGrp#')

Please let me know how to pass two or more values from one environment variable.

Thanks,
Hari.
Hari Krishna
Maveric
Participant
Posts: 388
Joined: Tue Mar 13, 2007 1:28 am

Post by Maveric »

What have you tried till now? What is happening when you pass the values as in your post? I guess it would work the way you have posted it. Pass the value as a string.
ankita
Participant
Posts: 57
Joined: Sun Nov 13, 2005 11:17 pm

Post by ankita »

I am also having similar requirement , not able to get the solution. Job is aborting. Please let us know if you find any solution.
Ankita
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

As noted, on the surface that should work just fine. We'd need specifics of the problem/abort to be able to help.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

In particular, you need to manage the single-quote characters, required in the context of the IN clause, when passing from a job parameter.
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