Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

SAS language

From Wikipedia, the free encyclopedia
Programming language
SAS
ParadigmMulti-paradigm:Data-driven,Procedural programming
Designed byAnthony James Barr
DeveloperSAS Institute
First appeared1976; 50 years ago (1976)
OSWindows andmacOS
LicenseProprietarycommercial software
Filename extensions.sas
Websitesas.com/en_us/software/base-sas.html

TheSAS language is afourth-generation computerprogramming language used for statistical analysis, created byAnthony James Barr atNorth Carolina State University.[1][2] Its primary applications includedata mining andmachine learning. The SAS language runs undercompilers such as theSAS System that can be used onMicrosoft Windows,Linux,UNIX andmainframe computers.[3]

History

[edit]
Main article:SAS Institute § History

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

Language

[edit]

Base SAS is afourth-generationprocedural programming language designed for the statistical analysis of data.[7] It isTuring-complete and domain specific, with many of the attributes of acommand language. As aninterpreted language, it is generally parsed, compiled, and executed step by step.[8] The SAS system was originally asingle instruction, single data (SISD) engine, butsingle instruction, multiple data (SIMD) andmultiple instruction, multiple data (MIMD) functionality was later added.[9] Most base SAS code can be ported between versions, but some are functions and parameters are specific to certain operating systems and interfaces.[10]

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

Syntax

[edit]

The language consists of two main types of blocks: DATA blocks and PROC blocks.[14] 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 ofdescriptive statistics, tables, results, charts and plots.[15][16] PROC SQL can be used to work withSQL syntax within SAS.[17]

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

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

A simple example of SAS code is the following

* COMMENT;DataTEMP;inputX Y Z;   datalines;1 2 35 6 7;run;PROC PRINTDATA = TEMP;RUN;

SAS macro language

[edit]

The SASmacro language is made available within base SAS software to reduce the amount of code, and createcode generators for building more versatile and flexible programs.[21] The macro language can be used for functionalities as simple as symbolic substitution and as complex asdynamic programming.[8] SAS macro is considered to be a rich language,[22] 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%.[8]

Software

[edit]
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 includeJMP,SAS Viya, SAS Enterprise Guide and SAS Enterprise Miner.[3][9][17] In 2002,World Programming also developed software that allows the execution of most SAS scripts.[17]

Uses

[edit]

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

Machine learning

[edit]

SAS is used for preparing input data, and building and optimizingmachine learning algorithms.[25] Various models, such asartificial neural networks (ANN),convolutional neural networks anddeep learning models, are developed and trained in SAS.[26] These are applied to areas such ascomputer vision andfraud detection.[27] SAS has also been noted for its applications in the area ofdecision intelligence.[28]

Data mining and warehousing

[edit]

While SAS was originally developed fordata analysis, it became an important language fordata storage.[5] SAS is one of the primary languages used for data mining in business intelligence and statistics.[29] According toGartner'sMagic Quadrant andForrester Research, the SAS Institute is one of the largest vendors of data mining software.[24]

See also

[edit]

Notes

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

References

[edit]
  • "Overview of the SAS Language". Department of Animal Science, McGill University. Archived fromthe original on 26 April 2016. Retrieved5 October 2013.
  • Barr, A. J.; Goodnight, J. H.; Sall, J. P.; Helwig, J. T. (1976),A User's Guide to SAS 76, Raleigh, North Carolina: SAS Institute, Inc.,ISBN 0-917382-01-3

External links

[edit]
Founders
Software
Programming languages
Related
Founded: 1976
National
Other
Retrieved from "https://en.wikipedia.org/w/index.php?title=SAS_language&oldid=1315947247"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp