Randy Herbison <RandyHerbison@WESTAT.COM> replied to Ya Huang:
> The TERMINAL device-type is included in the SAS OnlineDoc for the
> Unlike the data step WINDOW statement, it works even after the SAS AWS
> been minimized.
A very nice snippet. This might make a nice Coder's Corner
paper. And since I think I met every single Westat SAS
programmer *except* you at SUGI this year... :-)
> A couple of potential drawbacks are that all text written to the
> window remains in the window for the entire SAS session, and the user
> close the window to terminate the SAS session.
If these are serious drawbacks for the user's app, these can be
dodged around by an alternative. One could write a short program
using the Tk interface. This could be in Perl, Python, Tcl, etc.
Then, under the desired conditions, one could launch an X command
which would run the program. By using noxwait and noxsync, one
could get SAS to continue without waiting for the window. And one
could stick a button in the window so that clicking on the button
closes the little Tk window, or...
David Cassell, CSC
Senior computing specialist