[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



Also, putting an open statement in the heading would never get executed 
unless print output was created - and print output may be created long after 
you try writing to a flat file that you wanted open.

clark 'the dragon' willis
dragon enterprises, consulting services



PSA: Salary <> Slavery.  If you earn a salary, your employer is renting your 
services for 40 hours a week, not purchasing your soul.  Your time is the 
only real finite asset that you have, and once used it can never be 
recovered, so don't waste it by giving it away.

"Time is the coin of your life. It is the only coin you have, and only you 
can determine how it will be spent.  Be careful lest you let other people 
spend it for you."

Carl Sandburg
(1878 - 1967)

----Original Message Follows----

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.

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users