Professional Documents
Culture Documents
Basic Concepts
Applications development
2
Components Of SAS
Base SAS – Basic procedures and data management
SAS/STAT – Statistical analysis
SAS/GRAPH – Graphics and presentation
SAS/OR – Operations research
SAS/ETS – Econometrics and Time Series Analysis
Enterprise Guide - GUI based code editor & project manager
SAS EBI - Suite of Business Intelligence Applications etc..,
How you use SAS depends on what you want to accomplish. Some
people use many of the capabilities of the SAS System, and others
use only a few. At the core of the SAS System is Base SAS
Overview of Base SAS Software
Base SAS software contains the following:
A data management facility
Data analysis and reporting utilities
The functionality of SAS is built around the four data-driven tasks common
to virtually any application:
Data Access - addresses the data required by the application.
Data Management - shapes data into a form required by the
application.
Data Analysis - summarizes, reduces, or otherwise
transforms raw data into meaningful and useful
information.
Data Presentation - communicates information in ways that
clearly demonstrate its significance.
Data Management Facility
DATA steps typically create or modify SAS data sets. They can
also be used to produce custom designed reports, we can use
DATA steps to
7
Components of SAS Programs
8
SAS Data Set – Data Step
Data Step - SAS program begins with a DATA statement and used to create
`a SAS data set
DATA WEIGHT_CLUB;
INPUT IDNUMBER 1-4 NAME $ 6-24 TEAM $
STARTWEIGHT ENDWEIGHT;
LOSS=STARTWEIGHT-ENDWEIGHT;
DATALINES;
1001 Anil Red 80 60
1002 Arun Red 90 75
1003 Polsani Green 65 59
1004 Sani Red 75 66
1005 Ramesh Green 60 50
;
Note: By default, the data set WEIGHT_CLUB is temporary only for the current job
SAS Program in Detail
The DATA statement tells SAS to begin building a SAS data set
named WEIGHT_CLUB.
The INPUT statement identifies the fields to be read from the input
data and names the SAS variables to be created from them
(IdNumber, Name, Team, StartWeight, and EndWeight).
The third statement is an assignment statement. It calculates the
weight each person lost and assigns the result to a new variable,
Loss.
The DATALINES statement indicates that data lines follow. The
data lines follow the DATALINES statement. This approach to
processing raw data is useful when you have only a few lines of
data.
The semicolon signals the end of the raw data, and is a step
boundary. It tells SAS that the preceding statements are ready for
execution.
Rules for SAS Statements
http://mainframes-online-training.weebly.com/
Polsani Anil Kumar