Link Collector with Hashed file giving Empty Data set

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
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Link Collector with Hashed file giving Empty Data set

Post by gateleys »

Hi,
I never faced this problem before. I have a job where 3 sequential files are passed through a Link Collector, and the output is a hashed file (essentially to remove duplicate rows).

Code: Select all

SeqFile1--------\
SeqFile2--------LinkCollector----------HashedFile
SeqFile3--------/
Each file has 2 input columns with the same metadata. Both fields are set as key in the Hashed file (its a requirement). The Collector has been set with RoundRobin collection algorithm. When I run the job, the output link from LinkCollector states that there are 125,000 rows passed to the hashed file. But, when I try to view data in hashed file, it tells me data set is empty. When I replace the Hashed file with a sequential file, it works fine. So, the problem seems to be with the LinkCollector (algorithm) and Hashed file incompatibility (due to some mis-settings!! on my part). I have also tried with the Sort/Merge Algorithm with both of them as Sort Keys. Also tried to have a single field as key, etc, etc. But, the hashed file shows an empty set. Please let me know where I could have gone wrong.

Thanks.
gateleys
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Re: Link Collector with Hashed file giving Empty Data set

Post by gateleys »

What I now did is change my earlier design to-

Code: Select all

SeqFile1--------\ 
SeqFile2--------LinkCollector----->SeqFile------>HashedFile 
SeqFile3--------/ 
And it works fine. Of course, the job is done, but I am still curious about the behavior of the HashedFile when used at the output of a LinkCollector :? .

gateleys
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Re: Link Collector with Hashed file giving Empty Data set

Post by gateleys »

I was just hoping if anyone would give me some information on this.
Thanks,
gateleys
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

I dont guess duplicate should also be an issue, because
SeqFile------>HashedFile worked without any error. :?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Try replacing the intermediate sequential file with a transformer stage. You'll get the ability to add a reject link, which could trap out the rows being rejected from the hashed file stage.
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
rleishman
Premium Member
Premium Member
Posts: 252
Joined: Mon Sep 19, 2005 10:28 pm
Location: Melbourne, Australia
Contact:

Post by rleishman »

Make sure that the LC Inputs and Outputs have the same KEY columns checked. I've had similar probs when they are not matched.
Ross Leishman
Post Reply