Filter Record with a Date

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
FanWeik
Participant
Posts: 10
Joined: Mon Apr 26, 2004 11:40 am
Location: Seattle WA

Filter Record with a Date

Post by FanWeik »

Could you please tell me which PX stage I can use to filter out records based on a date that is > Date1 and <= Date2 where Date1 and Date2 are on a seperate file?

I have tried to use JOIN, MERGE and LOOKUP. They all seem to be looking at the keys being equal.

Thank you very much!
Fan
mouthou
Participant
Posts: 208
Joined: Sun Jul 04, 2004 11:57 pm

Post by mouthou »

Sinc your files not associated with any keys, you can add one. say an additional field called DUMMY in both the files :idea: . set the value of 1 for this field in both the files, so that all the records from file1 and file2 will be picked up. Then using the lookup bassed on this DUMMY key, you can select the records. By using the transformer, you can do the comparision. 8) :lol:
gh_amitava
Participant
Posts: 75
Joined: Tue May 13, 2003 4:14 am
Location: California
Contact:

Post by gh_amitava »

Hi,

Use Filter Stage.. See the orchestrate manual for proper syntax..

Regards

Amitava
Post Reply