Lookup data in hashed file using a routine?
Posted: Sun Mar 22, 2009 7:27 pm
Sorry if this has been discussed before. I did search on "hashed file basic" and "hashed file routine" before posting.
Is it possible to do a lookup against a hashed file in a routine?
What I want to do is:
SK = LookupDateSK(pInputDate,HashedFilePath)
where pInputDate is derived in a stage variable.
I'm thinking a combination of OPENSEQ, READSEQ, and CLOSESEQ???
If you've done this before or know where I can get an example, that would be great.
Hopefully the code would be performant (i.e. READSEQ would use the key of the hash for the lookup), as it would be called 3 times for every record in the source file.
Thanks,
Scott
Is it possible to do a lookup against a hashed file in a routine?
What I want to do is:
SK = LookupDateSK(pInputDate,HashedFilePath)
where pInputDate is derived in a stage variable.
I'm thinking a combination of OPENSEQ, READSEQ, and CLOSESEQ???
If you've done this before or know where I can get an example, that would be great.
Hopefully the code would be performant (i.e. READSEQ would use the key of the hash for the lookup), as it would be called 3 times for every record in the source file.
Thanks,
Scott