{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}


An_Introduction_to_SAS - An Introduction to SAS Part 1 The...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
An Introduction to SAS Part 1 The following is an introduction to using the SAS system. This document should be used as a resource to help you learn the basics of data set creation, data manipulation, and data analysis. Opening SAS To open a new SAS session, press the Start button at the lower left corner of the screen, after which, select All Programs , The SAS System , and then The SAS System for Windows . After a few seconds, the SAS system will open and will be ready for use. Note that the location of the SAS menu may vary from machine to machine. The SAS workspace The SAS workspace is composed of windows that allow you to accomplish specific tasks. Along with the main programming windows the workspace also includes the Explorer window, and the Results Navigator, a window for quickly navigating your output. For the purposes of this class we will find the Explorer window of little use, but will find the Results Navigator extremely useful. The main programming windows are made up of a set of three windows corresponding to various activities related to the creation and execution of SAS programs. Editor: Use this window to compose and edit your SAS program. Text in this window is generally saved with the .sas extension. Log: This is where the program log is located. The program log will tell you whether your program ran successfully. If there are any errors, they will appear in red. Text in this window is generally saved with the .log extension. Output: This is where any program output is located. Text in this window is generally saved with the .lst extension. You can toggle between the windows by clicking on the window name on the toolbar. Submitting SAS programs for execution The program editor window is where you enter and edit SAS statements to be executed. To start entering SAS statements, activate the program editor window (by clicking the mouse pointer inside the window if the window is not already active), position the cursor at the start, and begin entering SAS statements. Once the program is entered, you may submit the program for execution and observe the log and output windows. To submit a program, select the Submit option under the Run menu in the program editor window. Alternatively, we may submit a program for execution by pressing the run icon in the toolbar button. The log window displays messages from the SAS system as well as SAS program
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
statements as they are executed. The resulting output is listed in the output window. If any errors occurred in the program you must edit the program and re-submit the program. After a program has been submitted for execution, the program text may not automatically reappear in the program editor window. In this case, you can retrieve the program text by selecting the Recall last submit option on the Run menu when the program editor window is active. If you wish, you may clear the log and output windows by executing the Clear option under the Edit menu.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}