Recognition of End of Data [ HP FORTRAN 77/iX Migration Guide ] MPE/iX 5.0 Documentation
HP FORTRAN 77/iX Migration Guide
Recognition of End of Data
When reading from a terminal, FORTRAN 66/V recognizes end of data when it
encounters either a colon (:) or (:EOD) in input data. HP FORTRAN 77/V
recognizes end of data only when it encounters :EOD, it does not
recognize a colon as end of data. This feature of HP FORTRAN 77/V
prevents logging off if an input line of :EOF is entered, and allows
input of lines containing a colon in the first position. A colon can be
read as an ordinary character in the input data.
HP FORTRAN 77/V can allow input of a colon because it opens unit FTN05
(unit 5) differently from FORTRAN 66/V. Both FORTRAN 66/V and HP FORTRAN
77/V open unit 5 with the FOPEN system intrinsic. However, in FORTRAN
66/V the foptions parameter designates $STDIN, whereas in HP FORTRAN 77/V
the foptions parameter designates $STDINX. $STDIN and $STDINX both
represent the standard input device, but STDINX does not recognize a
colon as end of data.
If your program requires that a colon indicate end of data when reading
from a terminal (as FORTRAN 66/V does), use the following file equation
before running your program:
:FILE FTN05=$STDIN
This equation designates $STDIN as the standard input device, instead of
$STDINX.
MPE/iX 5.0 Documentation