SAS, aka Statistical Analysis System, is a programming language created in 1976 by Anthony James Barr.
#31on 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...
%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 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;
Feature | Supported | Example | Token |
---|---|---|---|
Case Insensitive Identifiers | ✓ | ||
Line Comments | ✓ | * A comment | * |
MultiLine Comments | ✓ | /* A comment */ | /* */ |
Comments | ✓ | ||
Semantic Indentation | X |