export write delays

Jeff Harrison jeffaharrison at yahoo.com
Tue Mar 20 08:10:55 PDT 2007


--- Doug Luurs <doug at borisch.com> wrote:

> Filepro 5.6.06R4 running on SCO Openserver 6.0
> 
> I am using a "EXPORT ASCII" command for a tab
> delimited file to write
> some data,
> and it works fine as long as I where to wait until
> the program is
> completely done
> Running.  
> 
> However .. If I try to do something with the file
> with a "@DONE"
> command within the processing, it is like the last
> 2-2.5k of the file is
> Never wrote yet.   I have tried to SYNC and close
> the file, and the the
> last
> 2-2.5k of data never appears until after the program
> is done running.
> 
> Any ideas ?
> 
> ----------- Code Snipets ----------
> (ALL THENs)
>       pn(50,*,g) = "/tmp/"  ;  fn(50,*,g) =
> "mrp2-daily"                
>       export ascii exl = (pn { fn { ".tsv")  R=\n
> F=\t 
> 	exl(1) = 1 ; exl(2) = 4 ; exl(3) = 5 ; exl(4) =
> (4+5) * 19  
> 	write exl
> 	end
> @Done
> 	sync
> 	close
> 	system "sleep 10"
> 	system scp /tmp/mrp2-daily.tsv
> somewhere at someserver:/incoming/mrp2-daily.tsv"
> 	End
> --------------------------------------
> 
> Doug Luurs

Hi Doug.  According to the help file "close" by itself
simply closes all files opened by lookups.  Try "close
exl" to close the export.

Jeff Harrison
jeffaharrison at yahoo.com

Author of JHExport and JHImport.  The fastest and
easiest ways to generate filepro exports and imports.


 
____________________________________________________________________________________
It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/


More information about the Filepro-list mailing list