export write delays

GCC Consulting gccconsulting at comcast.net
Tue Mar 20 08:32:28 PDT 2007


 

> -----Original Message-----
> From: 
> filepro-list-bounces+gccconsulting=comcast.net at lists.celestial
> .com 
> [mailto:filepro-list-bounces+gccconsulting=comcast.net at lists.c
> elestial.com] On Behalf Of Doug Luurs
> Sent: Tuesday, March 20, 2007 10:55 AM
> To: filepro-list at lists.celestial.com
> Subject: export write delays
> 
> 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
> --------------------------------------
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list


In addition to the close exl, previously recommended, you could add sleep
500 (1/2 second).

Both Nancy Palmquist and I have found that, for some unknown reason, and
although we have issued close export name, this slight delay solves this
type of problem. 

Richard Kreiss
GCC Consulting
 




More information about the Filepro-list mailing list