![Confused :?](./images/smilies/icon_confused.gif)
Hash File ?
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 67
- Joined: Wed Apr 14, 2004 11:33 am
Hash File ?
I have a job that is using 2 hash files and 1 sequential. It basically reads the 2 hash files for lookup purposes and then inserts a field from each in addition to the output of the seq. file. For the life of me I cannot get 1 of the hash files to score any hits, even though I know it has a key match on the seq. file. Has anybody seen this or have I just been staring at a dumb mistake too long? ![Confused :?](./images/smilies/icon_confused.gif)
![Confused :?](./images/smilies/icon_confused.gif)
-
- Premium Member
- Posts: 67
- Joined: Wed Apr 14, 2004 11:33 am
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
What are the data types of the key columns? What are the data types of the input columns you are using as reference key expressions? These must match.
The best approach is to make them all VarChar, Trim the key when loading the hashed file, and Trim the columns making up the reference key expression.
It's safe to make them all VarChar. The only data type in a text file is "text", and the only data type in a hashed file is "none".
The best approach is to make them all VarChar, Trim the key when loading the hashed file, and Trim the columns making up the reference key expression.
It's safe to make them all VarChar. The only data type in a text file is "text", and the only data type in a hashed file is "none".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.