Can "import ascii" be used with multiple file handles on the same import file?

Michael Schwartz (PC Support & Services) filepromike at gmail.com
Fri May 31 06:08:51 PDT 2019


     filePro version 5.8.03.12D6 running on Centos 6

 

     Before I spend a lot of time writing code to test this, do any of you
know if I can open the same file with "import ascii" using more than one
file handle in the same processing table?  Something like:

 

Import ascii NewOrder=(FF{"") r=\n  f=|

 

Import ascii PreCheck=(FF{"") r=\n  f=|

 

    FF is a huge text file with lines containing order numbers and part
numbers and I need to "read ahead" through the lines in the file one order
at a time to see if the order contains certain part numbers.  If these
certain part numbers are present in that order, I have to do some different
things when I start reading and posting the data lines using the "NewOrder"
file handle.

    I understand that "getnext"  and "getprev" don't work with "import
ascii".  If they did then I wouldn't need to open the file twice.  

 

    If nobody gives me a definitive answer, I will write some test code and
let you all know how it works out.

 

Thanks!

 

Mike Schwartz  

 

 

    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20190531/786294d0/attachment.html>


More information about the Filepro-list mailing list