|
Randy Herbison <RandyHerbison@WESTAT.COM> replied to Ya Huang:
> The TERMINAL device-type is included in the SAS OnlineDoc for the
FILENAME statement.
>
> Unlike the data step WINDOW statement, it works even after the SAS AWS
has
> 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
terminal
> window remains in the window for the entire SAS session, and the user
must
> 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
--
David Cassell, CSC
Cassell.David@epa.gov
Senior computing specialist
mathematical statistician
|