Unable to use comma delimited parameters in Oracle Etpr Stag

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
nelab28
Premium Member
Premium Member
Posts: 28
Joined: Fri Sep 24, 2004 1:25 am

Unable to use comma delimited parameters in Oracle Etpr Stag

Post by nelab28 »

Hi All,

I have a job that does a full extract by a complex join of 15 Plus tables and returns around 2 million rows.

Only 1000 of these 2 million rows are actually usable/required. Hence I
was looking at sending the 1000 record Id's into the complex query and limit the time it takes.

To select the records required, I have modified the query to have a parameter that would specify the records required.

The point of interest line in the query looks like
Where a.cust_num in ('#CustParms#')

Now this query works fine if I have a single value for the parameter. eg. 'ABC1000'

However, when I pass a parameter with the values 'ABC1000','mch2000'
there are no records returned.

What would be the fix so that 2 rows are returned(The Same query works fine otherwise).

Thanks in Anticipation.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Your single quotes are being stripped, which is an unfortunate but standard DataStage behaviour. In the past we would have told you to "escape the quotes" but now there is an environment variable you can set to turn off that behaviour.
-craig

"You can never have too many knives" -- Logan Nine Fingers
nelab28
Premium Member
Premium Member
Posts: 28
Joined: Fri Sep 24, 2004 1:25 am

Post by nelab28 »

Thank you for your help.

Cheers.
Post Reply