home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / fortran / 2875 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.6 KB  |  34 lines

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