[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
RE: [sqr-users] write 1 from $1 -> in header
Don't put an open statement in the HEADING unless you want it to execute at
the beginning of every page you print. I'm not sure what happens when you
try to open a file that's already open. Maybe nothing, or maybe it deletes
whatever you've written before and starts over.
Add a "status=#open_status" clause to the open statement and test the value
of #open_status. If it isn't 0, then your attempt to open the file didn't
work. Why? You might not be logged in to that drive, or the path in
$full_name might not exist, or you might not have write-access to it, or
there might already be a read-only file with that name.
-----Original Message-----
From: Ben Anderson [mailto:pegandersonbd1@hotmail.com]
Sent: Tuesday, July 15, 2003 8:32 AM
To: sqr-users@sqrug.org
Subject: [sqr-users] write 1 from $1 -> in header
I'm writing to a flat file and getting this error when I try to write in the
BEGIN-HEADING section:
(SQR 3202) Specified file number not opened for writing.
I've tried putting this:
open $full_name as 2
for-writing
record=900:vary
in the HEADING and at the very beginning of BEGIN-REPORT, but it just errors
on different line numbers. I also tried switching BEGIN-REPORT to
BEGIN-PROGRAM. Any guidance?
Thanks,
Ben Anderson
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
_______________________________________________
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