How to implement this logic

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
pardu
Participant
Posts: 8
Joined: Fri Jul 23, 2010 1:31 am
Location: hyd

How to implement this logic

Post by pardu »

Hi Guys


i hava some required like this
having following columns

id nubber(pk),event_cd(pk),date(timestamp).dr_ky
123,6210,2010/10/10,null
123,6200,2010/10/11,1010
123,6261,2010/10/11,1212
data like
f 6200 event exists and 6261 event exists and 6261 date >= 6200 date then ignore 6200 event
How to implement this logic

Thanks in advance for your help.
nayanpatra
Participant
Posts: 41
Joined: Sat Jun 06, 2009 11:13 pm
Location: Kolkata

Post by nayanpatra »

Is the data coming in any sequence/sort? Is the case deals with comparision between every 2 successive record? What happens to the 6210 event record? Please clarify these doubts to help you.
Nayan
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What exactly does "ignore 6200 event" translate to? Don't write it to your output? And are we literally hard-coding things for these "event codes" or would it be more proper to mention the first v. the second v. the third? :?
-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 »

You really do need to specify more exactly and more completely what the mapping rules are here. Do it in English, not in pseudo-code.
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