RE: [U2] Status of a WRITE to a Type 1 File
Hi Dave, You could put a group of special characters at the end of each job, and if you read a record and that group of characters are not there, then you'll know that it hasn't finished yet and that you need to read the record again after a little SLEEP. During processing, you could also scan the data just to insure that you're special characters really don't appear anywhere in the record just as an insurance policy. When you do read the record and the special characters are there at the end of the record, then you could just suppress them on output and it'll be done, badda bing, badda boom!!! And I thought 'end of record' markers were a thing of the past, or just for language designers!!! hth, Allen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dave Taylor Sent: Monday, October 31, 2005 11:53 To: u2-users@listserver.u2ug.org 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 u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[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 u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Status of a WRITE to a Type 1 File {Unclassified}
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: u2-users@listserver.u2ug.org 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 u2-users@listserver.u2ug.org 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 u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Status of a WRITE to a Type 1 File
Do you have something external waiting on this record to appear? If so, you might consider writing out the record out under a temporary name and then renaming it to a name that your watcher is looking for. We do this all the time with drop file interfaces; write the record with a .tmp extension and then change it to an .out extension (via !ren) once the record has been completely written. Your watcher would then only pick up the files with an .out extension. Possible? -Kevin [EMAIL PROTECTED] http://www.PrecisOnline.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Taylor Sent: Monday, October 31, 2005 12:53 PM To: u2-users@listserver.u2ug.org 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 u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.12.6/151 - Release Date: 10/28/2005 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Status of a WRITE to a Type 1 File
Write a tag record and watch for the tag instead of the actual data record. When the tag appears, you're sure the related data record is there. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Taylor Sent: Monday, October 31, 2005 11:53 AM To: u2-users@listserver.u2ug.org 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 u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/