Dave, It can take 'numbers of seconds' to write? Phew, they must be b--i--g records!
Could you consider changing from WRITE to WRITESEQF? And maybe from Type 1 to Type 19? If the 'subsequent action' is inside the UniVerse environment, I would expect that the program would access the copy buffered in memory anyway, regardless of whether it had yet been flushed to disk. If the 'subsequent action' is outside the UniVerse environment, then I would hope that a WRITESEQF would not return control to the next statement in the Basic program until the write was complete. If Windows lies to UV about that, and gets confused when another process tries to access the not-quite-written data, hmm ... You could try writing two files, one a flag, the other the data: - Write flag, status 'in process' - Write data - Write flag, status 'done' And the consumer process waits on the flag 'done' before trying to read the data. That might serialise the I/O for you. HTH Mike > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Dave Taylor > Sent: Tuesday, 1 November 2005 08:53 > To: [email protected] > Subject: [U2] Status of a WRITE to a Type 1 File > > We're using Universe 10.0.10.0 on Win 2000 Server. > > I need to determine when a Basic WRITE Statement of a record > to a Type 1 file has completed so I can execute a subsequent > action on the record written, but not before all the data in > the record has been written. > > These can be large records requiring various numbers of > seconds to write so I'm uncomfortable using a defined-length > SLEEP command. > > TIA, > > Dave > > Dave Taylor > President > Sysmark Information Systems, Inc. > 49 Aspen Way > Rolling Hills Estates, CA 90274 > 800-SYSMARK (800-797-6275) > (O) 310-544-1974 > (P) 800-339-1497 > (F) 310-377-3550 > Your Source for Integrated EDI Translation and DataSync > Integration www.sysmarkinfo.com > ------- > u2-users mailing list > [email protected] > To unsubscribe please visit http://listserver.u2ug.org/ > The information contained in this Internet Email message is intended for the addressee only and may contain privileged information, but not necessarily the official views or opinions of the New Zealand Defence Force. If you are not the intended recipient you must not use, disclose, copy or distribute this message or the information in it. If you have received this message in error, please Email or telephone the sender immediately. ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
