Page 1 of 1

Loading data to a hash file

Posted: Wed May 17, 2006 6:30 am
by EJRoufs
I am loading data from a comma-delimited file to a hash file, so I can do quick look-ups on it. The problem I'm having is that some of the data gets reformated when I move it over, for no apparent reason.

Example: I have account numbers that need to be 4 digits. Some of them have leading zeroes, though. 0001, 0002, 0003, etc. When I move the data to the has file, it drops the zeroes. I do not want it to drop the zeroes, but can't see how to stop that from happening.

Any info/help would be greatly appreciated. Thanks! :)

Posted: Wed May 17, 2006 6:41 am
by ArndW
Eric, declare that column as VARCHAR in the source and hashed file and it won't strip out the leading zeroes.

Posted: Wed May 17, 2006 8:00 am
by EJRoufs
ArndW wrote:Eric, declare that column as VARCHAR in the source and hashed file and it won't strip out the leading zeroes. ...

Thanks! I will give that a shot! :)