Академический Документы
Профессиональный Документы
Культура Документы
1 of 7
Home
Spark
Hadoop
Data Mining
Python
http://www.sasanalysis.com/2011/01/top-10-most-powerful-functions-for...
Data Visualization
United States
ABSTRACT
PROC SQL is not only one of the many SAS procedures and also a distinctive subsystem with all common features from
SQL (Structured Query Language). Equipped with PROC SQL, SAS upgrades to a full-fledging relational database
management system. PROC SQL provides alternative ways to manage data other than the traditional DATA Step and
SAS procedures. In addition, SASs built-in functions are the add-on tools to increase the power of PROC SQL. In this
paper, we illustrate ten popular SAS functions, which facilitate the capacity of PROC SQL in data management and
descriptive statistics.
CHARLIE HUANG
View my complete
profile
Followers
Members (89)
More
INTRODUCTION
Structured Query Language (SQL) is a universal computer language for all relational database management systems.
PROC SQL is the implementation of the SQL syntax in SAS. It first appeared in SAS 6.0, and since then has been
widely used for SAS users. PROC SQL greatly increases SASs flexibility in handling data, especially for multiple-table
joining and database access. There are a number of comparisons between the DATA Step and the SQL procedure in
SAS [1]. A majority of SAS functions can be directly used in the SQL procedure. And the PROC procedure also enjoys a
few unique functions. In this paper, we select the 10 SAS functions, and show their usage in the SQL procedure. For
demonstration purpose, we simulate a Social Security Number (SSN) dataset with two entries from different sources.
Each entry of the 1000 records should be identical but some values are missing.
*****(0) Simulate two datasets for demonstration********************;
*****(0.1) Simulate a dataset for two SSN entries*******************;
data ssn_data;
do i = 1 to 1000;
ssn1 = ceil((ranuni(1234)*1E9));
ssn2 = ssn1;
if ssn1 le ceil((ranuni(1000)*1E9)) then call missing(ssn1);
if ssn2 le ceil((rannor(2000)*1E9)) then call missing(ssn2);
drop i;
output;
end;
format ssn1 ssn2 ssn11.;
run;
We also simulate a patient-visiting dataset with three patient IDs. Every patient receives three different treatments at
each visit. The effects of the treatments (1 means effective; 0 means not effective) and the cost for each visit are
recorded. Other than the two simulated datasets, two datasets shipped with SAS, SASHELP.CLASS and
SASHELP.CARS, are also used in the paper.
Already a member?
Sign in
Blog Archive
2015 (8)
2014 (16)
2013 (24)
2012 (31)
2011 (58)
Dec 2011 (6)
Nov 2011 (1)
Oct 2011 (4)
Sep 2011 (4)
Aug 2011 (4)
Jul 2011 (5)
Jun 2011 (7)
May 2011 (9)
Apr 2011 (5)
09-Jan-16 10:25 PM
2 of 7
http://www.sasanalysis.com/2011/01/top-10-most-powerful-functions-for...
2008 (5)
Label
9.3 (9)
algorithm
(4) credit risk (6)
data
mining (24)
Hadoop (5)
macro (8)
market risk
(4) marketing (6)
09-Jan-16 10:25 PM
3 of 7
http://www.sasanalysis.com/2011/01/top-10-most-powerful-functions-for...
09-Jan-16 10:25 PM
4 of 7
http://www.sasanalysis.com/2011/01/top-10-most-powerful-functions-for...
CONCLUSION
The combination of SASs powerful functions and the SOL procedure will benefit SAS users in data management and
descriptive statistics.
REFERENCES
Christianna S. Williams. PROC SQL for DATA Step Die-hards. SAS Global Forum Proceeding 2008.
http://www2.sas.com/proceedings/forum2008/185-2008.pdf
Yefim Gershteyn.'Use of SPEDIS Function in Finding Specific Values'. SAS Users Group International 25.
http://www2.sas.com/proceedings/sugi25/25/cc/25p086.pdf
Amanda Roesch.'Matching Data Using Sounds-Like Operators and SAS Compare Functions'. Northeast SAS Users Group 2011.
http://www.nesug.org/Proceedings/nesug11/ap/ap07.pdf
20 comments:
Srinivas Reddy BusiReddy November 17, 2012 at 10:01 PM
This is a very useful article!! Can I use this for submitting a paper in sas global forum??
Thanks.
Reply
09-Jan-16 10:25 PM
5 of 7
http://www.sasanalysis.com/2011/01/top-10-most-powerful-functions-for...
All the movers and packers in India offer you a great range of packing services. Whether you are in need of commercial
shifting or home moving, we are all set to make your moving experience a pleasing and happy one. In brief, you get each
and everything under one roof.
Packers and Movers in Hyderabad or Movers and Packers Hyderabad
Packers and Movers in Bangalore or Movers and Packers Bangalore
Packers and Movers in Chennai or Movers and Packers in Chennai
Packers and Movers in Pune or Movers and Packers Pune
Packers and Movers in Mumbai or Movers and Packers Mumbai
Packers and Movers in Delhi or Movers and Packers Delhi
Packers and Movers in Gurgaon or Movers and Packers Gurgaon
Reply
09-Jan-16 10:25 PM
6 of 7
http://www.sasanalysis.com/2011/01/top-10-most-powerful-functions-for...
Crazy Bulk
Reply
Comment as:
Publish
Newer Post
Notify me
Home
Older Post
09-Jan-16 10:25 PM
7 of 7
http://www.sasanalysis.com/2011/01/top-10-most-powerful-functions-for...
WM
09-Jan-16 10:25 PM