Alan Yeo [log in to unmask] Just because you're paranoid Phone +44 1684 291710 it doesn't mean someone isn't!. Fax +44 1684 29171241_8Apr199911:11:[log in to unmask]
Getting more weird.. If I use CLOSE ... WITH NO REWIND at step 3, then the file
is left lying around
in the temp namespace -but- cannot be seen by MPEX showproc ;format=files
This is getting a little too bizarre for me...
Mark Wilkinson.
---------------------- Forwarded by Mark Wilkinson/UK/EU/SPE on 14/04/99 11:03
---------------------------
Mark Wilkinson 14/04/99 10:48
(Embedded image moved to file: pic21880.pcx)
To: [log in to unmask]
cc:
Subject: COBOL and temp files in HFS Namespace (revisited)
Have just done a little experiment with this. The results are interesting enough
to share with the list I think. I wrote a program to...
1. Open a temporary file in the /tmp directory with a filename > 16 chars (but
as a temporary file, not permanent)
2. Write a record to it
3. Close the file
4. Open it again for input
5. Read the record
6. Print the record
7. Close the file again
This seems to work fine up to step 4 where I get FSERR 52. I stuck in some
CAUSEBREAKs at key points and discovered the following (with the use of MPEX'
showproc ;format=files)
The temp file is built OK
The record is written OK
The first close purges the file!!
I wonder why the file is not left in the temporary namespace?
Interesting
Mark Wilkinson.