I am having problems with the INQUIRE statement. I have a file CO2TAB which is accessed by the fortran program (f77). The file does exist and is located in the same directory as the compiled program:
magrathea:tr_eco2n maurice$ ls -al CO2TAB
-rwxr-xr-x 1 maurice staff 260200 Oct 27 2005 CO2TAB
The program has the following statements in it:
IF(EX) GOTO 162
163 FORMAT(’ FILE CO2TAB DOES NOT EXIST — STOP EXECUTION’)
162 PRINT 164
When the program executes the INQUIRE statement, the value for EX comes back as .FALSE. and the program stops, as it is instructed to in the above code.
Any suggestions as to why INQUIRE is not seeing the file CO2TAB?