[mod.computers.vax] Terminal I/O during an AST

STEINBERGER@SRI-KL.ARPA.UUCP (12/13/86)

I need to write to "my" terminal during some AST routines.  Page 3-26
of the uVAX Programming Manual warns of a possible "redundant I/O error"
if you use a FORTRAN write to the default output device (i.e.
WRITE(UNIT=*,....)).  A suggestion is made to open a channel to the terminal
and use it to avoid this problem.

I'm not clear on what this means.  Will an open statement like the following
do the trick?

OPEN(UNIT=NEW_LU,FILE="TT:",status='NEW',...)

Then use the NEW_LU in the AST for the FORTRAN reads and writes?


Or do I need something more involved like a SYS$ASSIGN call?  Then what should
be done with the assigned channel?  Use it in a SYS$QIOW call?

I would prefer not to lose any non-AST produced output to the screen that
may have been in progress when an AST that does a screen write occurs.
If it get's "split" into before-AST and after-AST portions, that's 
acceptible.

Thanks in advance to all who respond.


-Ric Steinberger
STEINBERGER@SRI-KL.ARPA

-------