[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
RE: [sqr-users] Appending to an output file.
I've never tried it, but this should allow us to work with files that have
different record lengths. You could write to a file with 80 byte records,
close it, and reopen it for appending 100 byte records.
-----Original Message-----
From: Dan Brinkley [mailto:DBrinkley@techneglas.com]
Sent: Wednesday, June 25, 2003 1:51 PM
To: SVH@CDRH.FDA.GOV; sqr-users@sqrug.org
Subject: Re: [sqr-users] Appending to an output file.
Hi,
Sqr command OPEN has an argument called FOR-APPEND
EXAMPLE:
open $filename as 1 for-append record=80:fixed
(from the BRIO help file)
FOR-APPEND - When a file is opened in append mode, the current file
contents are preserved. All data written will be placed at the end of
the file. The file will be created if one does not already exist. For
existing files, make sure the attributes used are the same as those used
when the file was created. Failure to do this can produce unpredictable
results.
Daniel Brinkley
Programmer/Analyst
Techneglas, Inc.
Columbus, OH 43203
>>> SVH@CDRH.FDA.GOV 06/25/2003 4:28:09 PM >>>
Can I append to an output file in SQR? When my job runs, the output
file
may already contain data. In which case I want to append new output
data to
it. If not, it is created.
How do I declare a file for non-destructive write?
Samuel W. Harris
Computer Technology Specialist
Management Information Systems Branch
Division of Information Technology Management
OSM/CDRH/FDA
301-494-4550 x169
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users