link collector

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
kollurianu
Premium Member
Premium Member
Posts: 614
Joined: Fri Feb 06, 2004 3:59 pm

link collector

Post by kollurianu »

Hi all,

Can i use Link collector alone to to combine the two files (concatenate)

or should link collector and link partitioner go together.

Thank you all,
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Just the collector. If all you're trying to do is concatenate exact metadata matching files, just use a Unix cat statement. That's really fast and easy. Using a link collector requires both input links have the exact same metadata, so after your sequential stages you'll want a transformer to adjust the metadata accordingly.

You'll probably need to consider an extra column to identify where the row originated, file 1 or file 2.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
kollurianu
Premium Member
Premium Member
Posts: 614
Joined: Fri Feb 06, 2004 3:59 pm

Post by kollurianu »

Yes all the input links have the same metadata , so in that case can i use

link collector to combine the outputs .

Thank you,
Purna.
kumar_j
Participant
Posts: 45
Joined: Mon Nov 28, 2005 2:43 am

Post by kumar_j »

there is no rule that u should use the link collector with link partition stage
if u jave 2 input seq stage u can use link collector stage to club but the meta data should be the same for both the input files
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

If the inputs are Sequential Files with identical metadata you don't need DataStage at all; you can simply use cat to append the contents of the second to the first. If you then need to work on the composite result, use a Sequential File stage to process the result - maybe use a cat command in a filter.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kollurianu
Premium Member
Premium Member
Posts: 614
Joined: Fri Feb 06, 2004 3:59 pm

Post by kollurianu »

Thank you Ray , i was thinking like that too,

can i just give cat and file names f1 and f2 in the filter box of target sequential stage.

Thank you all.
Post Reply