This section illustrates
-
invoking SAS from the Start menu
-
submitting a sample SAS program
-
examining the program output
-
You can invoke SAS from
the Start menu by, selecting
ProgramsSAS9.3.
The following display
shows the Enhanced Editor and Log windows with a sample SAS program
that is ready to be submitted. This program creates a SAS data set
called Oranges, which contains the results of a taste test on four
varieties of oranges. The program sorts the data set by the total
test score and prints the data set.
Submitting the Sample SAS Program
The following SAS code
appears in the
Enhanced Editor window:
ods rtf file="c:\em\oranges.rtf";
data oranges;
input variety $ flavor texture looks;
total=flavor+texture+looks;
cards;
navel 9 8 6
temple 7 7 7
valencia 8 9 9
mandarin 5 7 8
;
proc sort data=oranges;
by descending total;
run;
proc print data=oranges;
title 'Taste Test Results for Oranges';
run;
ods rtf close;
After you submit the
program, the output appears in the
Results Viewer window
as follows:
Looking at the Program Output
The items in the SAS
menu bar at the top of the main SAS window change, depending on which
window is active within the SAS session. In addition, you can access
window-specific pop-up menus, which offer the same menu choices. The
pop-up menu in the following display was generated by right-clicking
in an
Enhanced Editor window.
Pop-up Menu in the Enhanced Editor Window
When you are ready to
end your SAS session, double-click the SAS control menu (the small
icon in the upper left corner of the main SAS window) or click the
X (in
the upper right corner) and click
OK when
the dialog box verifies your request.
Note: If you have disabled the
Confirm
Exit of SAS option in the
Preferences
dialog box, your SAS session ends without asking if you are sure you
want to end the session. For more information about how to customize
your SAS session, see
Setting Session Preferences .