Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

SAS

< >

SAS, aka Statistical Analysis System, is a programming language created in 1976 by Anthony James Barr.

#31on PLDB 48Years Old 8kRepos
Homepage · Wikipedia · Subreddit · Twitter · FAQ · Release Notes · Docs

The SAS language is a computer programming language used for statistical analysis, created by Anthony James Barr at North Carolina State University. 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. The SAS language runs under compilers that can be used on Microsoft Windows, Linux, and various other UNIX and mainframe computers. Read more on Wikipedia...


Example from hello-world:
%macro putit( string= ); %put &string; %mend; %putit(string=Hello World)
/* Hello world in SAS */ * Writes as output title; TITLE "Hello World!"; * writes to the log; data _null_; PUT "Hello world!"; run;
Example from Linguist:
/* Example DATA step code for linguist */ libname source 'C:\path\to\file' data work.working_copy; set source.original_file.sas7bdat; run; data work.working_copy; set work.working_copy; if Purge = 1 then delete; run; data work.working_copy; set work.working_copy; if ImportantVariable = . then MissingFlag = 1; run;

Language features

Feature Supported Example Token
Case Insensitive Identifiers
Line Comments * A comment *
MultiLine Comments /* A comment */ /* */
Comments
Semantic Indentation X

- Build the next great programming language · Add · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v144.0.0