SAS Programming Language
Free
resources updated everyday:
XXXLINKSXX
Back in 1976, the SAS Institute was founded, SAS was an acronym for statistical analysis system. But a lot has changed since 1976, SAS started out as a statistical language and has changed a great deal over the years. SAS now offers solutions for Data warehousing, data mining, OLAP, data visualization, applications development, along with the original stat formats. SAS now works on a wide range on servers and platforms from Windows NT to Unix. SAS can be found from the census bureau to the IRS and postal service, and universities and colleges around the world.
Applications
- Web Enablement
- Olap Solutions
- Enterprise resource planning
- E-intelligence
- Data Warehousing
- Data Mining
- Customer relations management
- Balanced scorecard (from Harvard)
Sample Program
Source Code: (Dates in SAS)
/*******************************************************************
This command file for SAS demonstrates how to use dates in a SAS
data step.
********************************************************************/
options linesize=72 pagesize=58;
title;
data dates;
length name $12;
input name $ b_mon b_day b_yr int_mon int_day int_yr;
if b_day = . then b_day = 15;
if int_day = . then int_day = 15;
birdate = mdy(b_mon,b_day,b_yr);
intdate = mdy(int_mon,int_day,int_yr);
intage = int((intdate-birdate)/365);
cards;
Arthur 12 12 84 9 3 94
Samantha 1 20 85 9 15 94
Bruce 10 6 83 10 2 94
Boggy 4 17 82 10 5 94
Nicole 6 . 83 9 14 94
;
proc print data=dates;
title 'printing dates as number of days since Jan 1, 1960';
run;
proc print data=dates;
format birdate mmddyy8. intdate mmddyy8.;
title 'printing dates using date formats';
run;