Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Originally developed for Agricultural Research Purposes, developed in between 1960’s and 1970’s
SAS = Data warehousing Tool + Statistical Package
The main functions of Data Warehousing Tool are ETL – Extraction, transforming and
Loading and Reporting
The main function of Statistical Package is Data Analysis
So, SAS can do all Data management, Data cleaning, Data manipulation, Data Analysis and
Reporting work.
SAS features,
It can process unlimited rows and columns,
Built in statistical functions for performing analysis,
Several numeric and characters functions for data manipulations,
Interact with multiple database and operating systems.
SAS Based Industries,
Health care and pharmacy,
Financial services,
Retail and Telecom,
Marketics, Analytics etc.,
SAS is used for,
Data management
Business intelligence
Predictive Analysis
Descriptive and Prescriptive Analysis etc.,
SAS has solution for,
Data Governance
Data Quality
Big Data Analytics
Data Mining
Fraud management
Health science etc.,
We can safely assume SAS has a solution for every business domain.
SAS enables you to,
SAS programming
SAS Windows
Editor Window – We can write, Edit and submit our SAS programs
Explorer Window – Storage place for all SAS Files. Contains folders like libraries,
favorite folders, computer, file shortcuts etc.,
Results Window – Used to navigate the output window, serves much like a table of
contents for Output Window.
SAS Program steps:
(1) Starts with keyword ‘Data’ (1) Starts with key word ‘Proc’
(2) Used to create and modify data (2) Perform specific analysis
(3) Create a SAS data set (3) Generate results or reports
workflow in SAS
Data Step ---> Create Data/Modifying Data –---> Proc Step -----> Data Analysis/ Reporting
SAS Files,
SAS Dataset
SAS Libraries
SASUser and SASHelp are inbuilt permanent libraries of SAS. We can create a new SAS
library by using SAS utilities or by writing the codes in the editor window. These libraries are
named as permanent because if we create a program in SAS and save it in these permanent
libraries then these will be available as long as we want them.
Work is the inbuilt temporary library of SAS. All the programs that we create are stored in
this work library if we do not assign any other library to them. You can check this work library in
the Explore Window. If you create a SAS program and have not assign any permanent library to it
then if you end the session after that again you start the software then this program will not be in
the work library. Because it will only be there in Work library as long as the session goes ones.
Naming:
To store SAS datasets in any created temporary or permanent library, we have to give
library name before the dataset name. Library name and dataset name should be separated by ‘.’
This is Two level naming
You can omit the libname, and give only dataset name, then it is one-level naming
SAS program:
Data Emp_data;
Input ID Name $ Dept $;
Cards;
101 Rick IT
102 Dan OPS
103 Tusar IT
104 Pranav OPS
105 Rasmi FIN
Run;