Use the %WINDOW statement
to define customized windows that are controlled by the macro processor.
These windows have command and message lines. You can use these windows
to display text and accept input. In addition, you can invoke windowing
environment commands, assign function keys, and use a menu generated
by the PMENU facility.
You must define a window
before you can display it. The %WINDOW statement defines macro windows;
the %DISPLAY statement displays macro windows. Once defined, a macro
window exists until the end of the SAS session, and you can display
a window or redefine it at any point.
Defining a macro window
within a macro definition causes the macro processor to redefine the
window each time the macro executes. If you repeatedly display a window
whose definition does not change, it is more efficient to do one of
the following:
-
define the window outside a macro
-
define the window in a macro that
you execute once rather than in the macro in which you display it
If a %WINDOW statement
contains the name of a new macro variable, the macro processor creates
that variable with the current scope. The %WINDOW statement creates
two automatic macro variables.
contains the last command
from the window's command line that was not recognized by the windowing
environment.
contains text that
you specify to be displayed on the message line.
Note: Windowing environment file
management, scrolling, searching, and editing commands are not available
to macro windows.