OSWRITE/OSBWRITE QUESTIONS (AREV Specific)
At 18 MAR 1999 11:46:37AM reginald crosby, rcrosby@tnc.org wrote:
I'm trying to create a DOS file to hold records my program
kicks out as exceptions.
MY problem is that when the records are being written to the
DOS file they are being overwritten by the next write.
I want the records to APPEND to the file. When I view the file
I see only ONE record instead of 2000.
I am using the OSBWRITE command. Is there another way to create
OS files that append each record instead of overwriting them?
At 18 MAR 1999 12:31PM Matt Sorrell wrote:
Reginald,
Of the type of my head, the syntax for OSBWRITE is:
OSBWRITE VAL ON DOS.FILE AT BYTE
AFTER you do this, you need to increment BYTE by the length of the record. This is very simply done by:
BYTE+=LEN(VAL)
Also, one thing you want to make sure of is that you stick a CRLF (CHAR(13):CHAR(10)) on the end of each record that you write out.
Matt Sorrell
msorrell@movgal.com
At 18 MAR 1999 12:39PM Reginald Crosby wrote:
Thanks!!!!!
It worked!