home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!cs.utexas.edu!hermes.chpc.utexas.edu!aswx266
- From: aswx266@chpc.utexas.edu (Michael Lemke)
- Subject: Re: DIR from within VAX Fortran
- Message-ID: <1992Jul29.230047.26566@chpc.utexas.edu>
- Keywords: DIR VAX
- Organization: The University of Texas System - CHPC
- References: <1992Jul29.212842.28989@constellation.ecn.uoknor.edu>
- Date: Wed, 29 Jul 92 23:00:47 GMT
- Lines: 22
-
- In article <1992Jul29.212842.28989@constellation.ecn.uoknor.edu> david-bourne@uokhsc.edu (David Bourne) writes:
- >I have written a program in FORTRAN for the Mac, IBM, and am now porting it
- >to the VAX environment. It runs OK with a few problems. At one point I ask
- >the user to enter a file name. If the user gets it wrong and the file doesn't
- >exist I can give the user the opportunity to do a directory call. With the
- >Mac its a standard toolbx call. With MS FORTRAN 5.0 on the IBM I use a pause
- >statment which allows the users to enter the DIR *.DAT for example to do a
- >directory before reasking for the file name. On the VAX the pause only allows
- >the user to enter continue. Anything else aborts the program. Does anyone
- >have suggestions for a work around. Thanks.
-
- I think a SPAWN is also ok; either just SPAWN and do whatever
- you like (use LOGOUT to go back to your curent process that runs your
- program) or do SPAWN DIR and then the CONTINUE.
-
- Better solution would be to code something around the
- LIB$FIND_FILE call in your code. See HELP RTL LIB LIB$FIND_FILE.
-
- --
- Michael Lemke
- Astronomy, UT Austin, Texas
- (michael@io.as.utexas.edu or UTSPAN::UTADNX::IO::MICHAEL [SPAN])
-