Documente Academic
Documente Profesional
Documente Cultură
SAS
Chapter 1: Installation of SAS
http://tutorials.algaeservice.com/ 2
About Us
History of SAS
Installation of SAS
Working Principles
of SAS Program
SAS Processing
Sample program
Summary
Questions
http://tutorials.algaeservice.com/ www.algaeservices.co.in
History of SAS
http://tutorials.algaeservice.com/ www.algaeservices.co.in
Statistical Analysis Software (SAS)
http://tutorials.algaeservice.com/ www.algaeservices.co.in
Why SAS?
• Platform Independence
• Portability
• Data Access from diverse sources
• Powerful Tools for various Business needs
• Data warehousing Made Easy
• Single integrated system
http://tutorials.algaeservice.com/ www.algaeservices.co.in
SAS System Architecture
-Raw File -
--- ----------- - - - - - - - - -
- - - - - - - --- -- - - - - - - - -
Graphs
SAS Drill
RDBMS
Down
Reports
ERP/Legacy
Files
http://tutorials.algaeservice.com/ www.algaeservices.co.in
SAS Usage – Solution Wise
• Analytics
• Business Analytics
• Business Intelligence
• Customer Intelligence
• Data Management
• Fraud & Financial Crimes
• IT Management
• OnDemand Solutions
• Performance Management
• Risk Management
• SAS® 9.4
• Supply Chain Intelligence
• Sustainability Management
http://tutorials.algaeservice.com/ www.algaeservices.co.in
SAS Usage – Industry Wise
• Casinos
• Communications
• Education
• Financial Services
• Government
• Health Insurance
• Health Care Providers
• Hotels
• Insurance
• Life Sciences
• Manufacturing
• Media
• Oil & Gas
• Retail
• Travel & Transportation
• Utilities
• Small to Midsize Business
http://tutorials.algaeservice.com/ www.algaeservices.co.in
Base SAS
• Data access
• Management
• Analysis
• Presentation
http://tutorials.algaeservice.com/ www.algaeservices.co.in
Example
http://tutorials.algaeservice.com/ www.algaeservices.co.in
Managing Data
http://tutorials.algaeservice.com/ www.algaeservices.co.in
For Example:
We can do the following, like
• Subset data
http://tutorials.algaeservice.com/ www.algaeservices.co.in
Analyzing Data and Presenting Information
http://tutorials.algaeservice.com/ www.algaeservices.co.in
Analysis
• Base SAS provides powerful data analysis tools.
– Compute a variety of descriptive statistics, including the mean, sum, variance, standard deviation and
more
– Compute correlations and other measures of association, as well as multi-way cross-tabulations and
inferential statistics.
http://tutorials.algaeservice.com/ www.algaeservices.co.in
Presentation
http://tutorials.algaeservice.com/ www.algaeservices.co.in
Explore the SAS Workspace
http://tutorials.algaeservice.com/ www.algaeservices.co.in
SAS Windowing Environment
When you first start SAS, the five main SAS windows open: the
Explorer, Results, Program Editor or Editor, Log, and Output
windows.
http://tutorials.algaeservice.com/ www.algaeservices.co.in
View of Explorer Window
In the Explorer window, we can view and manage our SAS files and create shortcuts to files
that are not formatted by SAS. Use this window to
Create new SAS libraries and SAS files
Open any SAS file
Perform most file management tasks such as moving, copying, and deleting files
Create file shortcuts.
http://tutorials.algaeservice.com/ www.algaeservices.co.in
View of Editor Window
• We can use the window to enter, edit and submit SAS programs:
http://tutorials.algaeservice.com/ www.algaeservices.co.in
View of Log Window
http://tutorials.algaeservice.com/ www.algaeservices.co.in
View of Output Window
http://tutorials.algaeservice.com/ www.algaeservices.co.in
View of Output Window – HTML Format
http://tutorials.algaeservice.com/ www.algaeservices.co.in
View of Result Window
• The Results window helps us to navigate and manage output from SAS
programs that we submit. We can view, save, and print individual items of
output.
• The Results window is empty until we submit a SAS program that creates
output. Then it opens or moves to the front of our display.
http://tutorials.algaeservice.com/ www.algaeservices.co.in
Working with SAS Data sets
Before we can work with our data in SAS, it must be in a special form called a SAS
data set. Conceptually, a SAS data set (also called a table) is a file containing
descriptor information and related data values. The file is organized as a table of
observations (rows) and variables (columns) that SAS can process. Some SAS
data sets also contain an index, which enables SAS to locate records in the
data set.
http://tutorials.algaeservice.com/ www.algaeservices.co.in
Descriptor Portion
• Descriptor Portion
– Name of the data set
– Date and time the data set was created
– Number of observations
– Number of variables.
– Each variable's name, type, length, format, informat,
and label.
http://tutorials.algaeservice.com/ www.algaeservices.co.in
Data Portion
• Data Portion
– Tabular Arrangement of data
– Contains Observations and Variables
– Variables can be either Character or numeric
– Character variables can be up to 32K long
– Numeric Values stored as floating point variables have
a default length of 8 bytes
– SAS can handle up to 32,767 variables
http://tutorials.algaeservice.com/ www.algaeservices.co.in
Contd..
To work with SAS data sets, you also need to understand how they
are stored. All SAS files are stored in a SAS library, which is a
collection of files
such as SAS data sets and catalogs. In the Windows and Unix
environments, a
SAS library is typically a group of SAS files in the same folder or
directory.
http://tutorials.algaeservice.com/ www.algaeservices.co.in
Library and Data Sets
http://tutorials.algaeservice.com/ www.algaeservices.co.in
Layout of SAS Programs
http://tutorials.algaeservice.com/ www.algaeservices.co.in
Part of SAS Programs
• Data Step
• TO CREATE DATA SETS
– Put your data into a SAS data set
– Compute the values for new variables
– Check for and correct errors in your data
– Produce new SAS data sets by subsetting, merging, and updating existing data sets.
• Proc Step
• PROCESS DATA SETS
– Print a report
– Produce descriptive statistics
– Create a tabular report
– Produce plots and charts.
http://tutorials.algaeservice.com/ www.algaeservices.co.in
SAS Variables and File Names
• NAMES
– 1 TO 32 CHARACTERS IN LENGTH
– START WITH LETTER (A THRU Z) AND _
– CAN BE A COMBINATION OF NUMBERS/LETTERS
– Blanks cannot appear in SAS names.
• VARIABLES
– CHARACTER
– NUMERIC
• FILENAMES
– 2 LEVEL
– LIB - WORK/PERMANENT
• Example:-
– Payroll
– Budget1995_1997
– _Students
http://tutorials.algaeservice.com/ www.algaeservices.co.in
Processing SAS Programs
http://tutorials.algaeservice.com/ www.algaeservices.co.in
Contact Us
– Thanks
– Algae Services
– www.algaeservices.co.in
– http://tutorials.algaeservice.com/
– BTM Bangalore
http://tutorials.algaeservice.com/ www.algaeservices.co.in