FORTRAN Reference Manual

Running and Debugging Programs
FORTRAN Reference Manual528615-001
11- 6
The EXECUTION-LOG PARAM and Standard Input
The EXECUTION-LOG PARAM and Standard Input
FORTRAN determines the file name for standard input as follows. If the INFILE name
in your program’s startup message is:
Not the name of your program’s home terminal, FORTRAN uses the INFILE name
from the startup message for standard input.
Blanks, FORTRAN does not open a system file but accepts open requests and
returns end of file each time your program reads from standard input.
The name of your program’s home terminal and
°
You do not specify the EXECUTION-LOG PARAM, FORTRAN opens your
home terminal if your program opens standard input.
°
You specify a file name as the EXECUTION-LOG, FORTRAN uses the file you
specify for the EXECUTION-LOG as standard input.
For example, if your home terminal is named $TERM and you specify AFILE
for EXECUTION-LOG, FORTRAN opens AFILE if a routine in your program
opens standard input:
PARAM EXECUTION-LOG AFILE
RUN myprog / IN $TERM, ..... /
If you do not specify the IN parameter, TACL passes the name of your terminal
as the IN parameter, which has the same effect as explicitly specifying your
home terminal as the IN parameter:
PARAM EXECUTION-LOG AFILE
RUN myprog
°
You specify an asterisk for the EXECUTION-LOG, FORTRAN does not open a
file for standard input. Instead, FORTRAN returns end of file each time your
program reads from standard input:
PARAM EXECUTION-LOG *
RUN myprog / IN $TERM, ..... /
If you do not specify the IN parameter, TACL passes the name of your terminal
as the IN parameter, which has the same effect as explicitly specifying your
home terminal as the IN parameter:
PARAM EXECUTION-LOG *
RUN myprog