Introduction to SAS in our STAT courses

Printer-friendly versionPrinter-friendly version

What Is SAS?

SAS logoAccording to their site, http://www.sas.com/ , "SAS is the leader in business intelligence and predictive analytics software." This application is used directly or referred to in many of the online STAT courses at Penn State.

Obtaining A Copy Of SAS

See the Statistical Software page for information regarding obtaining a copy.  Please note that the SAS Student License and Media expires annually in June.

Penn State WebApps logoSAS can also be accessed through Penn State's WebApps service although there are limitations to how it may be used in the web-based environment.  Students are STRONGLY advised to have access to a local copy of SAS.  Please contact your instructor to see if using SAS remotely will present problems for what you need to learn.

Launching SAS Programs In Our STAT Courses...

launch SAS programFor efficiency purposes, you may sometimes find a 'Launch SAS' button (right) to download the relevant SAS program and open it automatically using the SAS application installed on your local computer.  Or, you might be simply be presented with a link to the SAS program file.

Configuring your browser so that downloads open your SAS application automatically

The process of installing SAS on your local computer involves specifying and registering with your Windows operating system all of the file types that SAS will use within the SAS application. As a result, for example, Windows will place SAS specific icons where SAS files that have the '.sas' file extension are listed.

The browser that you are using to display the lesson pages should also be able to distinguish these file types as well. The first time that you click on a link and begins downloading a file type that your computer or browser does not recognize, a dialog box will appear that will ask you whether you want to Open the file with a specific application, Save the file to a location on your computer, or Cancel the download. Be sure to select the option for opening all files that have the file extension '.sas' with your SAS application. This involves finding and selecting the SAS program through this dialog box. Once this configuration is set, any time you click on a link that is a SAS file having a '.sas' extension, it will automatically launch SAS (if it isn't open already) and then open the program within the Program Editor window of your SAS application.

If you have you missed doing this the first time around you can still let your system know the preferred application you would like for a specific file type at any time. If the program code shows up in a separate window, use the File >> "Save Page As" option and Save the file to a location on your computer. Now, locate the newly saved file and right-click on it so that a dialog box similar to this appears:

Open With Dialog Box

The key selection here is the "Open With" option. If SAS does not appear on the list, then use the "Choose Program..." option. You should get a dialog box that looks like this:

Open With Selection

Be sure to check the box that we have circled in red - "Always use the selected program to open this kind of file."

You can test this using the 'Launch' button at the bottom of this page.

Not to worry! If the configuration has not been specified, your browser will display the text of SAS program in a new window. All you need to do is copy and paste the text of this SAS program file into your SAS Program Editor window.

Configuring your computer to do this automatically provides convenience, but you always should have access to the text of the SAS program itself.


Datasets

Datasets are presented within the context of the lesson, usually found within the narrative of an example as regular links. The links are to text or data files where the data is stored. Save Link As ...Data files typically include the file extension ".txt" and will open in a new window when clicked.

If you want to download and save this file to a specific location on your computer, right-click the link and select the "Save Link As" option (see right). A Save dialog box will be displayed and allow you to save the text file to the location you choose on your computer. Try doing it with this dataset - dogs.txt.

 


A Typical SAS Program Example In Our STAT Courses...

Here is a simple example of how these links are sometimes incorporated into your lesson pages. Typically you will first find a picture of what the SAS program looks like. Below this graphic you may find an Inspect! button which will open a viewlet or movie that will walk you through this program as well as its output. In addition, you will also find the link to the SAS program in this example that you can run the program yourself. (In this case the data are included within the SAS program itself and not provided via a link to a text file.) If you are using PSU WebApps, you can use the WebApp clipboard to copy and paste the program into webapp SAS. To run the program, you may either use the run menu or click the submit button that looks like a running man.

Give them a try!  Here is the SAS program:  lesson01.sas, which looks like this:

Here is a movie that will walk you through the various parts of the program (no audio).

 


Free SAS eLearning Modules!

Penn State University has access to free eLearning. This free eLearning is associated with your EAS (Education Analytical Suite), Enterprise Miner and JMP licenses. Each of these components, allows you access to different eLearning courses. These courses may be accessed by faculty, staff and students associated with Penn State University using a psu.edu email address AND who have purchased a current license for SAS or JMP from software.psu.edu.

What you are entitled to:

EAS eLearning

  • SAS(R) Enterprise Guide(R) 1: Querying and Reporting (EG 4.3)
  • SAS(R) Macro Language 1: Essentials
  • SAS(R) Enterprise Guide(R): ANOVA, Regression, and Logistic Regression (4.3 and 5.1)
  • SAS(R) Programming 3: Advanced Techniques and Efficiencies
  • SAS(R) Enterprise Guide(R) 1: Querying and Reporting (EG 5.1)
  • Statistics 1: Introduction to ANOVA, Regression, and Logistic Regression
  • SAS(R) SQL 1: Essentials
  • SAS(R) Programming 1: Essentials
  • SAS(R) Programming 2: Data Manipulation Techniques
  • SAS(R) Enterprise Guide(R): ANOVA, Regression, and Logistic Regression
  • Introduction to Statistical Concepts
  • SAS(R) Programming 1: Essentials
  • Predictive Modeling Using Logistic Regression
  • SAS(R) Programming Introduction: Basic Concepts
  • Statistics 1: Introduction to ANOVA, Regression, and Logistic Regression
  • SAS(R) Enterprise Guide(R) 1: Querying and Reporting (EG 4.2)
  • SAS(R) Enterprise Guide(R) 2: Advanced Tasks and Querying (EG 5.1)
  • Querying, Reporting, and Analyzing Data Using SAS(R) Enterprise Guide(R)

Enterprise Miner eLearning

  • Rapid Predictive Modeling for Business Analysts (EM 7.1)
  • Rapid Predictive Modeling for Business Analysts (EM 6.2)
  • Applied Analytics Using SAS(R) Enterprise Miner(TM)

JMP eLearning

  • JMP(R) Software: Data Exploration - Academic Version (JMP 9)
  • JMP(R) Software: Data Exploration - Academic Version (V11)
  • JMP(R) Software: ANOVA and Regression (JMP 11)
  • JMP(R) Software: ANOVA and Regression (JMP 10)
  • JMP(R) Software: Data Exploration - Academic Version (V10)

If you do not currently have a license for SAS or JMP, you will need to purchase it online via software.psu.edu. Upon order processing and installation of your product, your activation codes to the free eLearning opportunities are:

[email Glenn Johnson for these codes if you are a student in the Department of Statistics]

To activate your e-Learning once you have purchased and installed your SAS/JMP license from software.psu.edu:

Go to support.sas.com/myelearn and log in to your profile. If you do not currently have a profile, please create one using a link provided on support.sas.com/myelearn.

Once you've logged in to your My Training page, locate the "To Activate a New Product" box on the right side of the screen.

  • Enter your activation code and click Submit.
  • Review and accept the license agreement.
  • You should now see the training in your list of active courses and the date on which your access expires.
  • Click on the course title to start your learning.

To Access your e-Learning Once It Has Been Activated

Once your e-Learning has been activated, visit support.sas.com/myelearn or select My Training from any page on the SAS training Web site and log in to your profile to access your training.

For Help

See troubleshooting tips via http://support.sas.com/training/elearn/help.html or send E-mail to elearn@sas.com with questions.