Page 1 of 1

Not in or not between condition:

Posted: Thu Jun 23, 2011 1:33 pm
by kumar444
I have a requirement. I need to exclude the ranges and values like below in datastage.
4-10
25-30
80-300
00
null

Any suggestions would be appreciated.


Thanks

Posted: Thu Jun 23, 2011 4:00 pm
by ray.wurlod
Exclude them from what? What are you trying to accomplish?

Posted: Fri Jun 24, 2011 1:39 am
by Sreenivasulu
Try Using the reject links in LOOKUP, MERGE stage

Posted: Sun Jun 26, 2011 1:16 pm
by kumar444
I have values coming as above in three different columns.
condition is something like
column 1 column 2 column 3.
4 26 85 ------------>reject
00 4 null -------------->reject
3 26 85 --------------->pass


If any of those values mentioned in the actual post satisfy the above condition i should reject them.

Note: There is an 'AND' condition between the three columns.


Thanks,

Posted: Tue Jun 28, 2011 1:06 am
by Vishal1982
Check the values directly in constraint part of the transformer.
Put the condition like

column1 < 4 and column1 > 10

and the same for other ranges to check and reject the records based on the values return.

Regards,
Vishal

Posted: Tue Jun 28, 2011 7:30 am
by udayk_2007
This can be also acheived using Filter Stage. Not sure if conditions on multiple columns can be placed in the single filter stage. If not supported,you need to use 3 filter stages.

Regards
Ulhas

Posted: Tue Jun 28, 2011 8:19 am
by mhester
The filter stage is probably not the best choice for this type of requirement. The "Filter" stage evaluates the expression at runtime for every input row. Because the Transform is compiled it will always be faster than a Filter stage.

Also, use of Filter stage should be limited to instances where the entire filter expression must be parameterized at runtime.

Posted: Tue Jun 28, 2011 9:01 am
by kumar444
Thanks for your inputs.
Sorry i have posted the actual requirement here in this link below.

viewtopic.php?t=140904

Posted: Tue Jun 28, 2011 10:14 am
by jwiles
You're running two posts on the same topic and problem? That is frowned upon here.

Posted: Tue Jun 28, 2011 10:38 am
by kumar444
It was vague , so i had to repost.

Posted: Tue Jun 28, 2011 11:00 am
by chulett
No, it was vague so you had to re-clarify. And that should have happened here.

Posted: Tue Jun 28, 2011 2:09 pm
by kumar444
Sorry My fault. Will keep this in mind next time.