Research005
Answer these questions.
Provide a short explanation of the purpose of the SAS navigation pane and work area. Then provide short descriptions for each of these sections of the navigation pane: server files and folders, tasks and utilities, snippets and libraries in your own words.
Provide short definitions and an example for each of these data types: categorical, ordinal, interval and ratio data. Avoid selecting examples covered in the course material.
Please answer all the questions fully.
1
Agenda
Introduction to SAS Studio
2
What Is Base SAS?
Base SAS is the foundation for all SAS software
Base SAS provides the following:
a highly flexible, highly extensible, fourth-generation programming language
a rich library of encapsulated programming procedures
a choice of programming interfaces
Base SAS
Reproduced with permission of the SAS Institute Inc., Cary, NC, USA
3
TAG_AltText: Graphic describing major solution and technology categories, which are SAS Business Solutions, Analytics, Information Management, Business Intelligence, and High-Performance Analytics
3
SAS Programming Interfaces
SAS Studio
SAS windowing environment
SAS Enterprise
Guide
We’ll use SAS Studio in this course
Reproduced with permission of the SAS Institute Inc., Cary, NC, USA
We’ll use SAS Studio
SAS has several different programming interfaces that you can use to interactively write and submit code. These interfaces include the SAS windowing Environment – the interface that is part of SAS, SAS Enterprise Guide – a client application that runs on your PC and accesses SAS on a local or remote server, and SAS Studio – a web-based interface to SAS that you can use on any computer.
In this class we'll use SAS Studio and SAS Enterprise Guide because they include the most modern programming tools.
SAS Studio
SAS Studio is a web client that is accessed through an HTML5-compliant web browser.
SAS Studio provides the following:
a point-and-click interface with menus and task wizards to generate SAS code
a full programming interface that can be used to write, edit, and submit SAS code
Reproduced with permission of the SAS Institute Inc., Cary, NC, USA
5
SAS Programs
A SAS program is a sequence of one or more steps.
DATA steps typically create SAS data sets.
PROC steps typically process SAS data sets to generate reports and graphs, and to manage data.
6
DATA Step
PROC Step
Reproduced with permission of the SAS Institute Inc., Cary, NC, USA
6
TAG_Instructor: A SAS program is a sequence of steps. There are only two types of steps in SAS: DATA and PROC steps
DATA steps read from an input source and create a SAS data set.
PROC steps read and process a SAS data set, often generating an output report.
SAS Interface Tabs or Windows
Regardless of the SAS interface that you choose to use, there are three primary tabs or windows
| Editor | Enter, edit, submit, and save a SAS program |
| Log | Browse notes, warnings, and errors relating to a submitted SAS program |
| Results | Browse output from reporting procedures |
Reproduced with permission of the SAS Institute Inc., Cary, NC, USA
28
7
SAS Programming Interfaces
Editor
Log
data myclass;
set sashelp.class;
run;
proc print data=myclass;
run;
1 data myclass;
2 set sashelp.class;
3 run;
NOTE: There were 19 observations read from
the data set SASHELP.CLASS.
NOTE: The data set WORK.MYCLASS has 19
observations and 5 variables.
NOTE: DATA statement used:
real time 0.01 seconds
cpu time 0.00 seconds
4
5 proc print data=myclass;
NOTE: Writing HTML Body file: sashtml.htm
6 run;
NOTE: There were 19 observations read
from the data set WORK.MYCLASS.
Results and Output Data
view messages from SAS
write and submit code
view results
Reproduced with permission of the SAS Institute Inc., Cary, NC, USA
To program, you need some basics: an editor to write and submit code, a way to read messages related to the code that you submit (this is called the log in SAS), and a way to view the reports and data that your programs create. Although they look different and are organized differently, all SAS interfaces have these programming tools. In addition, SAS Studio and Enterprise Guide have an editor that is smart about SAS code, with features such as code completion and syntax coloring. This makes programming much easier!
In this course, you can practice in your preferred interface, but we'll start by showing you how to write and submit code in both SAS Studio and SAS Enterprise Guide just in case you aren't sure which one you want to use.
SAS Interface Tabs or Windows (Continued)
The following is an example workflow of how a user might use the three primary tabs or windows:
View the results to explore the output from reporting procedures.
View the log to determine whether any errors occurred in the program.
Submit the program.
Enter or open a SAS program into the Editor.
Debug or modify the program in the Editor.
Reproduced with permission of the SAS Institute Inc., Cary, NC, USA
35
9
The SAS Studio Interface
This is the work
area
SAS Studio is a code generator
that runs on SAS code
This is the
navigation
pane
10