CRE Programmer's Guide

CRE Services
Common Run-Time Environment (CRE) Programmer’s Guide528146-004
2-30
Standard Input
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
The name of your program’s home terminal and you specify an asterisk for the
EXECUTION-LOG, the CRE does not open a file for standard input. Instead, the
CRE 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
Note. The CRE does not recognize a TACL ASSIGN for a logical file called STDIN.
Figure 2-11. Establishing the File Name of Standard Input
no
Error
212VST .VSD
INFILE in
startup message
is home term
?
INFILE
in startup
message is
blanks
?
Start
PARAM
EXECUTION-LOG
present
?
PARAM
EXECUTION-LOG
is *
?
PARAM
EXECUTION-LOG
is file name
?
yes
yes
yes yes
yes
no no
no
Use INFILE from
startup message
No INFILE. Reads
from standard input
return end of file.
Use file name
specified in
EXECUTION-LOG
no