Page 1 of 1

More than one record from transform stage

Posted: Thu Jul 22, 2004 9:19 am
by rdy
I'm using a transform with a sequential file input and ODBC lookup. I want to extract all the records in the ODBC that match the key value in the sequential file.

However, the transform currently grabs the FIRST record in the ODBC that matches, and not the rest.

I know there's a setting somewhere that says "grab all the matching records". Anyone know where that is?

Posted: Thu Jul 22, 2004 9:46 am
by chulett
You need to go to the Link Properties of the Transformer stage you are doing the lookups from. It is there on the Inputs tab that you'll find a check box for Reference Link with multi row result set.

Posted: Thu Jul 22, 2004 10:47 am
by sumitgulati
Great chulet, I never knew about this option.

Thanks,
Sumit

Posted: Thu Jul 22, 2004 11:12 am
by chulett
Applicable to both the ODBC and UV stages, by the way.

Posted: Thu Jul 22, 2004 11:16 am
by sumitgulati
Yaa, and I guess Hash File always takes the last record.

-Sumit

Posted: Fri Jul 23, 2004 4:59 am
by ray.wurlod
If you're doing a lookup to a hashed file (even via a UV stage) using the key, then it returns "that" row, not the first, not the last. In hashed files (all UV tables are hashed files), the key is UNIQUE. :)