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

Richard D. Williams richard at appgrp.net
Fri May 31 07:31:37 PDT 2019


Only if you close the first handle before you open the second.

This file will be open and locked, so the second import will fail as if 
you reach the end of the file.

Richard D. Williams


On 5/31/2019 8:08 AM, Michael Schwartz (PC Support & Services) via 
Filepro-list wrote:
>       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>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>


---
This email has been checked for viruses by AVG.
https://www.avg.com



More information about the Filepro-list mailing list