* Scratch file location in DEC Fortran
@ 1995-06-19 4:00 Peter Marksteiner
1995-06-20 4:00 ` Steve Lionel
0 siblings, 1 reply; 2+ messages in thread
From: Peter Marksteiner @ 1995-06-19 4:00 UTC (permalink / raw)
The DEC Fortran Language Reference Manual says (Page 10-31):
Scratch files (STATUS='SCRATCH') are created in the user's working directory
and are visible while they are open.
I suspect this is not true. On an Alpha system running OSF/1 3.2 scratch files
are always created in /tmp and not in the user's working directory; they are
called something like /tmp/aaaaa3efa.
Is there a simple way to specify a default path for scratch files, preferably
through an environment variable? The manual seems to be silent on this point.
I know about the FILE and DEFAULTFILE keywords in the OPEN statement, and about
the FORTx environment variable, but that's not quite what I want. On an AIX
system with xlf, the environment variable TMPDIR does what I need.
--
Peter Marksteiner
Vienna University Computer Center
Universitaetsstrasse 7
A-1010 Vienna, Austria
e-mail: Peter.Marksteiner@univie.ac.at
Tel: (+43 1) 406 58 22 255
FAX: (+43 1) 406 58 22 170
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Scratch file location in DEC Fortran
1995-06-19 4:00 Scratch file location in DEC Fortran Peter Marksteiner
@ 1995-06-20 4:00 ` Steve Lionel
0 siblings, 0 replies; 2+ messages in thread
From: Steve Lionel @ 1995-06-20 4:00 UTC (permalink / raw)
In article <3s3vl5$4pd6@ftp.univie.ac.at>, Peter Marksteiner
<Peter.Marksteiner@univie.ac.at> writes:
|>The DEC Fortran Language Reference Manual says (Page 10-31):
|>
|>Scratch files (STATUS='SCRATCH') are created in the user's working directory
|>and are visible while they are open.
|>
|>I suspect this is not true. On an Alpha system running OSF/1 3.2 scratch files
|>are always created in /tmp and not in the user's working directory; they are
|>called something like /tmp/aaaaa3efa.
You're right - the manual is wrong. We'll fix this in a future edition.
|>Is there a simple way to specify a default path for scratch files, preferably
|>through an environment variable? The manual seems to be silent on this point.
|>I know about the FILE and DEFAULTFILE keywords in the OPEN statement, and about
|>the FORTx environment variable, but that's not quite what I want. On an AIX
|>system with xlf, the environment variable TMPDIR does what I need.
The User Manual (which contains more OS-specific information) does say that
assigning the TMPDIR environment variable allows you to redirect the location.
I recommend reading the User Manual I/O chapter for additional information
of interest.
--
Steve Lionel Mail: lionel@quark.enet.dec.com
DEC Fortran Development WWW: http://www.digital.com/info/slionel.html
Digital Equipment Corporation CompuServe: 75263,3001
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698 "Free advice is worth every cent"
For a summary of Digital's Internet services, send mail to info@digital.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-06-20 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-06-19 4:00 Scratch file location in DEC Fortran Peter Marksteiner
1995-06-20 4:00 ` Steve Lionel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox