joining two files

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
rajiivnb
Participant
Posts: 77
Joined: Fri Sep 10, 2004 8:38 am
Location: India

joining two files

Post by rajiivnb »

Hi,
I would require to join two files and take the result of nonmatching columns in the target.I cannot use lookup as the file is too large and join too as i want to avoid on outer joins.Is there any stage to do this .

Thanks in advance.

Regards,
Rajii
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Use funnel operator followed by some control logic.
rajiivnb
Participant
Posts: 77
Joined: Fri Sep 10, 2004 8:38 am
Location: India

Post by rajiivnb »

Hi Sainath,
If possible could you please brief it more .

Regards,
rajii
mandyli
Premium Member
Premium Member
Posts: 898
Joined: Wed May 26, 2004 10:45 pm
Location: Chicago

Post by mandyli »

Hi Rajeev,

What is the problem in using Join stage for large no of data? I hope funnel stage will not help for this. You will try to use join stage or you will use Change Capture stage.

Thanks
Man
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Mandyli,

As you notice, rajiivnb had declined the choice to use Hash or Join stage.

You can achieve the same using Funnel stage by adding an extra 'source file id' column and sort the input by key + source_file_id. This will then be useful to work the difference with stage variables.
Post Reply