<html><head></head><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_ym19_1_1537894315328_3322"><span id="yui_3_16_0_ym19_1_1537894315328_3321">If you are sure the lookup is fine and "defile" has not been closed in the meantime, then without further information, I only have one other thought.  If you open the same file under 2 different aliases, then close either one of them, it closes the file and the lookup would fail, even if it uses a different alias.  Could that be the case here.  </span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1537894315328_3323"><span><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1537894315328_3325"><span id="yui_3_16_0_ym19_1_1537894315328_3324">If not, I suggest putting on the debugger right before the lookup line and then making sure the lookup works and stays open until you hit the line of code that is giving the error.</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1537894315328_3326"><span><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1537894315328_3327"><span>Bill Lucca</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1537894315328_3330"><span><br></span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: verdana, helvetica, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Tuesday, September 25, 2018 12:29 PM, Richard Kreiss via Filepro-list <filepro-list@lists.celestial.com> wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div dir="ltr">Have a process which does a lookup and test it starting with line 79 in my processing table. The program then does a GOSUB and copies the original record to a backup and then does a return.  The program then checks to see if some variable have been set.  Then tests to see if there is a dummy variable ln ne defile(3).  This is where I get the field not found error.<br></div><div dir="ltr"><br></div><div dir="ltr">I know the lookup is valid as it has been tested previously and has been able to copy out the record looked up to a qualifier.  I don't know why defile(the alias) is failing the lookup.  Any suggestions as to why this code is failing.<br></div><div dir="ltr"><br></div><div dir="ltr">I can repeat the lookup again but that would just be a work around for the issue.<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">Richard Kreiss<br></div><div dir="ltr">GCC Consulting<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">-------------- next part --------------<br></div><div dir="ltr">A non-text attachment was scrubbed...<br></div><div dir="ltr">Name: winmail.dat<br></div><div dir="ltr">Type: application/ms-tnef<br></div><div dir="ltr">Size: 15341 bytes<br></div><div dir="ltr">Desc: not available<br></div><div dir="ltr">URL: <<a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20180925/73221326/attachment.bin" target="_blank">http://mailman.celestial.com/pipermail/filepro-list/attachments/20180925/73221326/attachment.bin</a>><br></div><div dir="ltr">_______________________________________________<br></div><div dir="ltr">Filepro-list mailing list<br></div><div dir="ltr"><a ymailto="mailto:Filepro-list@lists.celestial.com" href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a><br></div><div dir="ltr">Subscribe/Unsubscribe/Subscription Changes<br></div><div dir="ltr"><a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br></div><br><br></div>  </div> </div>  </div></div></body></html>