short guide SAS - USING SAS AT JAMES MADISON UNIVERSITY: A...

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

View Full Document Right Arrow Icon
USING SAS AT JAMES MADISON UNIVERSITY: A SHORT GUIDE for SAS on Windows Joanne M. Doyle (updated 1/2006 by William C. Wood) (update 9/2001 by Joanne M. Doyle) Introduction SAS is a statistical software package used extensively in many statistical fields, including econometrics. Originally a mainframe program, SAS today retains much of its mainframe feel, even as it has moved primarily to the Windows platform. JMU offers SAS in a number of computer labs (see https://ars.jmu.edu/labs/onesoft.asp?softname=SAS for a list). Learning to use SAS involves learning the syntax of the program, that is, the rules of creating and executing a program as well as learning how to use the software in the Windows environment. SAS can operate in either a batch mode or in an interactive mode of Windows applications. This guide will focus on batch mode and the basics of writing and executing a program of commands. In batch mode, SAS executes your instructions line-by-line from a command file. You then examine the resulting output and make any necessary changes. This approach is not as easy to use as interactive software, but it conserves computing resources to apply raw processing power to the statistical task at hand. The two basic steps for all SAS analyses are 1) writing the program and 2) executing the program. I. SAS for Windows: BASICS From the Start menu, go to All Programs , and SAS , and choose SAS 9.1 (English) . This will launch the program. As it comes up you will find several windows on the screen, each with a certain function. 1) The Programming windows The windows that are used for SAS programming are the Program Editor, Log, and Output windows. a) Editor Window : allows you to write, edit and submit SAS programs. A SAS program consists of a list of commands telling SAS where to find the data that you want to analyze and what analysis you want to do on the data.
Background image of page 1

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

View Full DocumentRight Arrow Icon
b) Log Window: displays messages from the SAS System. This is where you will find error messages telling you that SAS ran into an error in your program and can’t proceed. c) Output Window: displays the output of your program. d) Results Window: helps you navigate the information in the Output Window. Keep in mind that it contains nothing that isn’t already in the Output Window; therefore, we won’t be using it. e) Explorer Window: also a navigation tool that we can ignore for now. It is possible to have all of these windows, or a subset of them open at one time. In fact, when you launch the program, you will have the LOG and the EDITOR windows open, as well as the Explorer window. Once you run some procedures, SAS will open up the OUTPUT and RESULTS windows. II. THE BASICS OF PROGRAM FILES You will create a program file in the Editor window. The program file contains the SAS commands to carry out statistical analyses. For example, you can give a command that calculates the mean, standard deviation and other sample statistics for a list of variables. The important parts of the SAS program file include the
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.

This note was uploaded on 12/08/2010 for the course USE 3425 taught by Professor Raman during the Spring '10 term at Punjab Engineering College.

Page1 / 12

short guide SAS - USING SAS AT JAMES MADISON UNIVERSITY: A...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online