Displays a window that is created with the WINDOW statement
| Valid: |
in a DATA step
|
| Category: |
Window Display
|
| Type: |
Executable
|
|
DISPLAY window<.group>
<NOINPUT > <BLANK > <BELL > <DELETE>;
|
-
window< .group>
-
names the window and group of fields to
be displayed. This field is preceded by a period (.).
-
NOINPUT
-
specifies that you cannot input values into
fields that are displayed in the window.
-
BLANK
-
clears the window.
-
BELL
-
produces an audible alarm, beep, or bell
sound when the window is displayed if your terminal is equipped with a speaker
device that provides sound.
-
DELETE
-
deletes the display of the window after
processing passes from the DISPLAY statement on which the option appears.
You must create a window in the same DATA step that
you use to display it. Once you display a window, the window remains visible
until you display another window over it or until the end of the DATA step.
When you display a window that contains fields where you enter values, either
enter a value or press ENTER at each unprotected field to cause
SAS to proceed to the next display. You cannot skip any fields.
While a window is being displayed, use commands and
function keys to view other windows, to change the size of the current window,
and so on.
A DATA step that contains a DISPLAY statement continues
execution until the last observation that is read by a SET, MERGE, UPDATE,
MODIFY, or INPUT statement has been processed or until a STOP or ABORT statement
is executed. You can also issue the END command on the command line of the
window to stop the execution of the DATA step.
You must create a window before you can display it.
See the WINDOW statement later in this chapter for a description of how to
create windows. A window that is displayed with the DISPLAY statement does
not become part of the SAS log or output file.
This DATA step creates and displays a window named START.
The START window fills the entire screen. Both lines of text are centered.
data _null_;
window start
#5 @28 'WELCOME TO THE SAS SYSTEM'
#12 @30 'PRESS ENTER TO CONTINUE';
display start;
stop;
run;
Although the START window in this example does not require
you to input any values, you must press ENTER to cause SAS execution to proceed
to the STOP statement. If you omit the STOP statement, the DATA step executes
endlessly unless you enter END on the command line of the window.
Note:
Because this DATA step does not read any observations, SAS
cannot detect an end-of-file to cause DATA step execution to cease. If you
add the NOINPUT option to the DISPLAY statement, the window displays quickly
and is removed.
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.