SAS language explained

SAS
Paradigm:Multi-paradigm

Data-driven, Procedural programming

Designer:Anthony James Barr
Developer:SAS Institute
Operating System:Windows and macOS
License:Proprietary commercial software
File Extensions:.sas

The SAS language is a fourth-generation computer programming language used for statistical analysis, created by Anthony James Barr at North Carolina State University.[1] Its primary applications include data mining and machine learning. The SAS language runs under compilers such as the SAS System that can be used on Microsoft Windows, Linux, UNIX and mainframe computers.[2]

History

SAS was developed in the 1960s by Anthony James Barr, who built its fundamental structure, [3] and SAS Institute CEO James Goodnight, who developed a number of features including analysis procedures.[4] The language is currently developed and sponsored by the SAS Institute, of which Goodnight is founder and CEO.[5]

Language

Base SAS is a fourth-generation procedural programming language designed for the statistical analysis of data.[6] It is Turing-complete and domain specific, with many of the attributes of a command language. As an interpreted language, it is generally parsed, compiled, and executed step by step.[7] The SAS system was originally a single instruction, single data (SISD) engine, but single instruction, multiple data (SIMD) and multiple instruction, multiple data (MIMD) functionality was later added.[8] Most base SAS code can be ported between versions, but some are functions and parameters are specific to certain operating systems and interfaces.[9]

All SAS programs are written within the SAS language, although some packages use menu-driven graphical user interfaces on the front-end.[10] Various SAS editors use color coding to identify components like step boundaries, keywords and constants.[11] It can read in data from common spreadsheets and databases and output the results of statistical analyses in tables, graphs, and as RTF, HTML and PDF documents.[12]

Syntax

The language consists of two main types of blocks: DATA blocks and PROC blocks.[13] DATA blocks can be used to read and manipulate input data, and create data sets. PROC blocks are used to perform analyses and operations on these data sets, sort data, and output results in the form of descriptive statistics, tables, results, charts and plots.[14] [15] PROC SQL can be used to work with SQL syntax within SAS.[16]

Users can input both numeric and character data into base SAS. SAS statements must begin with a reserved keyword and end with [17] but the language is otherwise flexible in terms of formatting and most statements are case insensitive.[18] SAS statements can continue across multiple lines and do not require indenting, although indents can improve readability. Comments are delimited by and .[19]

A standard SAS program typically entails the definition of data, the creation of a data set, and the performance of procedures such as analysis on that data set. SAS scripts have the .sas extension.

A simple example of SAS code is the following

Data TEMP; input X Y Z; datalines;1 2 35 6 7

run;

PROC PRINT DATA = TEMP;RUN;

SAS macro language

The SAS macro language is made available within base SAS software to reduce the amount of code, and create code generators for building more versatile and flexible programs.[20] The macro language can be used for functionalities as simple as symbolic substitution and as complex as dynamic programming. SAS macro is considered to be a rich language,[21] although its overall syntax is very similar to that of base SAS. The names of macro variables in SAS are usually preceded by, while macro program statements are usually preceded by .

Software

See main article: SAS (software). SAS Institute develops a number of tools and software suites, also called SAS, which are used for creating programs in the language. These suites include JMP, SAS Viya, SAS Enterprise Guide and SAS Enterprise Miner. In 2002, World Programming also developed software that allows the execution of most SAS scripts.

Uses

The SAS language is used as a standard in many industries, and was ranked #22 on the TIOBE index in February 2024.[22] It is especially widely used for machine learning, data mining, and data warehousing in the finance, insurance, manufacturing, health care and pharmaceutical industries. It has a high level of documentation and community support, which has contributed to its uptake.[23]

Machine learning

SAS is used for preparing input data, and building and optimizing machine learning algorithms.[24] Various models, such as artificial neural networks (ANN), convolutional neural networks and deep learning models, are developed and trained in SAS.[25] These are applied to areas such as computer vision and fraud detection.[26] SAS has also been noted for its applications in the area of decision intelligence.[27]

Data mining and warehousing

While SAS was originally developed for data analysis, it became an important language for data storage. SAS is one of the primary languages used for data mining in business intelligence and statistics.[28] According to Gartner's Magic Quadrant and Forrester Research, the SAS Institute is one of the largest vendors of data mining software.

See also

References

External links

Notes and References

  1. Barr & Goodnight, et al. 1976:"The SAS Staff". Attribution of contributions to SAS 72 and SAS 76.
  2. Book: Chambers . Michele . Advanced Analytics Methodologies: Driving Business Value with Analytics . Dinsmore . Thomas W. . 2015 . Pearson Education . 978-0-13-349860-8 . 203 . en.
  3. Book: Agresti . Alan . Strength in Numbers: The Rising of Academic Statistics Departments in the U. S. . Meng . Xiao-Li . 2012-11-02 . Springer Science & Business Media . 978-1-4614-3649-2 . 177 . en.
  4. Book: Wahi, Monika . Mastering SAS Programming for Data Warehousing: An advanced programming guide to designing and managing Data Warehouses using SAS . 2020-10-16 . Packt Publishing Ltd . 978-1-78953-118-3 . 8–10 . en.
  5. Web site: Pampering The Customers, Pampering The Employees . 2024-04-29 . Forbes . en.
  6. Web site: SAS Help Center . 2024-04-29 . documentation.sas.com.
  7. Book: Carpenter, Art . Carpenter's Complete Guide to the SAS Macro Language, Third Edition . 2016-08-25 . SAS Institute . 978-1-62960-237-0 . 1–11 . en.
  8. Book: Bequet, Henry . Deep Learning for Numerical Applications with SAS . 2018-07-20 . SAS Institute . 978-1-63526-677-1 . 4–5 . en.
  9. Book: Hughes, Troy Martin . SAS Data Analytic Development: Dimensions of Software Quality . 2016-08-24 . John Wiley & Sons . 978-1-119-25570-3 . xiii . en.
  10. Book: Delwiche . Lora D. . The Little SAS Book: A Primer, Sixth Edition . Slaughter . Susan J. . 2019-10-11 . SAS Institute . 978-1-64295-343-5 . en.
  11. Book: Elliott . Alan C. . SAS Essentials: Mastering SAS for Data Analytics . Woodward . Wayne A. . 2015-08-18 . John Wiley & Sons . 978-1-119-04218-1 . 12 . en.
  12. Book: Ohri, Ajay . SAS for R Users: A Book for Data Scientists . 2019-08-05 . John Wiley & Sons . 978-1-119-25642-7 . 151–157 . en.
  13. Book: Bass . N. Jyoti . Base Sas Programming Black Book, 2007 Ed . Solutions . K. Madhavi Lata & Kogent . 2007 . Dreamtech Press . 978-81-7722-769-7 . 3–8 . en.
  14. Book: Chambers . Michele . Advanced Analytics Methodologies: Driving Business Value with Analytics . Dinsmore . Thomas W. . 2015 . Pearson Education . 978-0-13-349860-8 . 203 . en.
  15. Book: Ohri, Ajay . SAS for R Users: A Book for Data Scientists . 2019-08-05 . John Wiley & Sons . 978-1-119-25642-7 . 51–58 . en.
  16. Book: Anderson, Raymond A. . Credit Intelligence and Modelling: Many Paths Through the Forest of Credit Rating and Scoring . 2022 . Oxford University Press . 978-0-19-284419-4 . 565 . en.
  17. Book: Bass . N. Jyoti . Base Sas Programming Black Book, 2007 Ed . Solutions . K. Madhavi Lata & Kogent . 2007 . Dreamtech Press . 978-81-7722-769-7 . 43–44 . en.
  18. Book: Delwiche . Lora D. . The Little SAS Book: A Primer, Sixth Edition . Slaughter . Susan J. . 2019-10-11 . SAS Institute . 978-1-64295-343-5 . en.
  19. Book: Ohri, Ajay . SAS for R Users: A Book for Data Scientists . 2019-08-05 . John Wiley & Sons . 978-1-119-25642-7 . 4–6 . en.
  20. Web site: Introduction to SAS Macro Language . 2024-04-29 . stats.oarc.ucla.edu.
  21. Web site: Stalla . Alessio . 2022-04-20 . Challenges in Parsing Legacy Languages: The Case of SAS Macros . 2024-04-29 . Strumenta . en-US.
  22. Web site: TIOBE Index . live . https://web.archive.org/web/20240223214138/https://www.tiobe.com/tiobe-index/ . 2024-02-23 . 2024-04-30 . TIOBE . en-US.
  23. Book: Dean, Jared . Big Data, Data Mining, and Machine Learning: Value Creation for Business Leaders and Practitioners . 2014-05-07 . John Wiley & Sons . 978-1-118-92070-1 . 50–51 . en.
  24. Book: Kolosova . Tanya . Supervised Machine Learning: Optimization Framework and Applications with SAS and R . Berestizhevsky . Samuel . 2020-09-21 . CRC Press . 978-1-000-17681-0 . 7–8 . en.
  25. Book: Bequet, Henry . Deep Learning for Numerical Applications with SAS . 2018-07-20 . SAS Institute . 978-1-63526-677-1 . 8–14 . en.
  26. Book: Blanchard, Robert . Deep Learning for Computer Vision with SAS: An Introduction . 2020-06-12 . SAS Institute . 978-1-64295-917-8 . 26 . en.
  27. Web site: Forrester Reprint . 2024-04-30 . reprints2.forrester.com.
  28. Book: Shmueli . Galit . Data Mining for Business Analytics: Concepts, Techniques and Applications in Python . Bruce . Peter C. . Gedeck . Peter . Patel . Nitin R. . 2019-10-14 . John Wiley & Sons . 978-1-119-54985-7 . en.