lookup problem

John Esak john at valar.com
Tue Aug 3 13:58:31 PDT 2010


Your message is a little to scattered to understand precisely.  

Three things jump out. 

1)
You are referring to rn= here and there, and if you are looking for a key
based value in an index, you should be using k= in the lookup line.  Maybe
you have an r= by mistake because you are seeing the rn= ??  You really
should just post your code and not all the other stuff.

2)
Why do you put the value sales(@rn) into the dummy value RN. Why not jjust
use sales(@rn) in the lookup code? Maybe RN has some incorrect edit type to
hold sales(@rn). 

3)
If there are two and only two records of the master record and you want a
value lower than that that doesn't exist, it of course won't be found.

4)
Usually, errors saying 

> Field not found.
> 
> Lookup has not been performed.

Mean that the field being used for the key has not been defined.  So you use
something like k=ky and ky has no definition anywhere.



Also you put...

> The odd thing is this only happened with dclerk 5.6.10 
> windows not with
> rclerk 5.6.10.

Well, obviously, no one can get this... Until you change one of the
5.6.10's.

John





> -----Original Message-----
> From: filepro-list-bounces+john=valar.com at lists.celestial.com 
> [mailto:filepro-list-bounces+john=valar.com at lists.celestial.co
> m] On Behalf Of Richard Kreiss
> Sent: Tuesday, August 03, 2010 4:35 PM
> To: filepro-list at lists.celestial.com
> Cc: fpsupport at fptech.com
> Subject: lookup problem
> 
> I have a program which looks up from on file to another using 
> index c in the
> second file.  The lookup was coded for the get lowest, using 
> the master_code
> and a sequence number(NN).  Lv=master_code&sq. The lookup 
> kept failing with
> record not found.  It even failed with just the master_code.
> 
>  
> 
> When I check the second file using the master_code, the 
> record came up.
> 
>  
> 
> Each time I tried to get this lookup to work, it failed.  I 
> created an @key
> routine in a test file using the same lookup code and it succeeded.
> 
>  
> 
> I finally gave up with this routine and changed the lookup to 
> a browse in
> descending order.  There are 2 records in the second file matching the
> master_code.  
> 
>  
> 
> @bk = "s"
> 
> Rn=sales(@rn);GOTO get_sjn
> 
>  
> 
> When <s> is pressed, I get an error message 
> 
>  
> 
>  
> 
> *** A filePro Error Has Occurred ***
> 
>  
> 
> On File: C:\appl\ccp/filepro/transaction/index.A
> 
>  
> 
> Input Processing
> 
> Line Number: 450
> 
>  
> 
>         rn=sales(@rn);GOTO lok_sjn
> 
> ^
> 
>         @bk = "s"
> 
>         rn=sales(@rn);GOTO lok_sjn
> 
>  
> 
>  
> 
> Field not found.
> 
> Lookup has not been performed.
> 
>  
> 
> The odd thing is this only happened with dclerk 5.6.10 
> windows not with
> rclerk 5.6.10.
> 
>  
> 
> Has anyone else encountered this problem?
> 
>  
> 
> Richard Kreiss
> 
> GCC Consulting
> 
>  
> 
>  
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> http://mailman.celestial.com/pipermail/filepro-list/attachment
> s/20100803/abcb1002/attachment.html 
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
> 



More information about the Filepro-list mailing list