Page 1 of 1

Read Hashed File with concatenated key

Posted: Wed Nov 01, 2006 5:16 pm
by jdulaney
I am trying to develop a routine that reads a hashed file with 3 key fields and returns the value in the 4th field. I am using READU to read the file, but the read fails, because I obviously don't know the syntax to pass it the concatenated key. Can anyone help?

Posted: Wed Nov 01, 2006 10:18 pm
by kduke
There is a @TM between key fields. So

Key1 :@TM: Key2 :@TM: Key3

I what you need.

Posted: Wed Nov 01, 2006 10:19 pm
by kduke
By the way use READ if you do not plan to WRITE to the file otherwise you will leave locked records behind unless you use a RELEASE.

Posted: Thu Nov 02, 2006 9:09 am
by jdulaney
Thanks, Kim....

I knew it had to be something simple, but impossible to find in the documentation!

Jeanne

Re: Read Hashed File with concatenated key

Posted: Thu Nov 02, 2006 9:39 am
by gateleys
Just what you need. You will have to extend the 2 columns key to 3 columns.

viewtopic.php?t=86581&highlight=read+hash+file+routine

gateleys