IN operator in DATASTAGE
Moderators: chulett, rschirm, roy
IN operator in DATASTAGE
hi Friends
I have a parameter which is having no of values in the parameter from parameterset.
#AAA# having 1,2,3,4,5,6 values( values are different for each run)
I want to use this in constraint as where column A in #AAA#
can any one help how can I acheive this in DS
Thanks
I have a parameter which is having no of values in the parameter from parameterset.
#AAA# having 1,2,3,4,5,6 values( values are different for each run)
I want to use this in constraint as where column A in #AAA#
can any one help how can I acheive this in DS
Thanks
Hi
Previously my source( oracle) query was
SELECT * FROM <TABLE> where <COLUMN> A in #PARAMETER#
#PARAMETER# is from my parameterset.
Now my source has been changed to sequence file
I want to filter this some where in datastage job either in transformer stage or any other stage.
can you please help me.
Regards
Previously my source( oracle) query was
SELECT * FROM <TABLE> where <COLUMN> A in #PARAMETER#
#PARAMETER# is from my parameterset.
Now my source has been changed to sequence file
I want to filter this some where in datastage job either in transformer stage or any other stage.
can you please help me.
Regards
No "looping" required nor does the size of the list matter. The "trick" to preventing substring matches has been posted here many times: include the delimiter in the search. So, search for ",1," rather than "1". Which also means you'll need to wrap your parameter value in an extra set of delimiters so you can get a proper match on the end values.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
One example of several that an exact match search for "substring matches" turned up.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers