Top 1,000 Features Creators Events Podcasts Extensions Blog Explorer CSV Download


< >

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

#32on PLDB 48Years Old 8kRepos

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 Token Example
Case Insensitive Identifiers
Line Comments *
* A comment
MultiLine Comments /* */
/* A comment
Semantic Indentation X

View source

- Build the next great programming language · About · Resources · Acknowledgements · Part of the World Wide Scroll