Not in or not between condition:

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
kumar444
Premium Member
Premium Member
Posts: 62
Joined: Wed Jan 12, 2011 10:01 am

Not in or not between condition:

Post 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
-------------------------------------------
Kumar
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Exclude them from what? What are you trying to accomplish?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

Try Using the reject links in LOOKUP, MERGE stage
kumar444
Premium Member
Premium Member
Posts: 62
Joined: Wed Jan 12, 2011 10:01 am

Post 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,
-------------------------------------------
Kumar
Vishal1982
Participant
Posts: 38
Joined: Wed Oct 01, 2008 10:30 am

Post 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
IBM Websphere Datastage Certified Professional
udayk_2007
Participant
Posts: 72
Joined: Wed Dec 12, 2007 2:29 am

Post 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
mhester
Participant
Posts: 622
Joined: Tue Mar 04, 2003 5:26 am
Location: Phoenix, AZ
Contact:

Post 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.
kumar444
Premium Member
Premium Member
Posts: 62
Joined: Wed Jan 12, 2011 10:01 am

Post by kumar444 »

Thanks for your inputs.
Sorry i have posted the actual requirement here in this link below.

viewtopic.php?t=140904
-------------------------------------------
Kumar
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

You're running two posts on the same topic and problem? That is frowned upon here.
- james wiles


All generalizations are false, including this one - Mark Twain.
kumar444
Premium Member
Premium Member
Posts: 62
Joined: Wed Jan 12, 2011 10:01 am

Post by kumar444 »

It was vague , so i had to repost.
-------------------------------------------
Kumar
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No, it was vague so you had to re-clarify. And that should have happened here.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kumar444
Premium Member
Premium Member
Posts: 62
Joined: Wed Jan 12, 2011 10:01 am

Post by kumar444 »

Sorry My fault. Will keep this in mind next time.
-------------------------------------------
Kumar
Post Reply