running import command on each record

James Flanagan James at Flantec.com
Wed Aug 16 06:40:58 PDT 2017


Redhat Enterprise 6.8
Filepro 5.8.01.06D6

I am trying to use an import command in output processing to run on each record and import some data to each from its own separate data file.  My processing works as expected on the very first record, but what appears to happen on record #2 is that even though field 40 is a different value (and ultimately a different file), after defining the import for the 2nd time, the NOT DATA is for some reason TRUE and it kills the import for all subsequent records.  

I cannot find anything in the manual that explains this behavior.  

from what i am seeing, it would appear that I would need to run a separate dreport for each record to get this work properly, which is not a big deal to program, but if there is a way to get this to function so that the import works for each record within the same dreport, i would prefer to use that method.  thank you very much, 

loop::’:
::fn="/tmp/addv/"{40{".txt":
::import ascii data=(fn) r=\n f=^A o=" c=":
:not data:end:
:: <code to populate fields>….
::goto loop:


James Flanagan
Flantec.com <http://flantec.com/>

email:	James at Flantec.com <mailto:James at Flantec.com>
mobile:	760-458-8498
home: 	219-221-6219
text:		7604588498 at txt.att.net <mailto:7604588498 at txt.att.net>

aim:		Flantec
oovoo:	Flantec
Skype:	Flantec
ichat:	Flantec at mac.com <mailto:Flantec at mac.com>

home:	1901 Cidermill Road
		Michigan City, IN 46360

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


More information about the Filepro-list mailing list