From 3ecc1f883cb7731bc7dbb0c9cc0b46c7951c9b9e Mon Sep 17 00:00:00 2001 From: Eric Lofgren Date: Tue, 3 Dec 2013 14:48:55 -0500 Subject: [PATCH] Basic SAS Just an entry for SAS with the basic .sas file extension and two examples. --- lib/linguist/languages.yml | 5 +++++ samples/SAS/data.sas | 17 +++++++++++++++++ samples/SAS/proc.sas | 15 +++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 samples/SAS/data.sas create mode 100644 samples/SAS/proc.sas diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 17545309..b99844f5 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -1353,6 +1353,11 @@ Rust: color: "#dea584" primary_extension: .rs +SAS: + type: programming + color: "#1E90FF" + primary_extension: .sas + SCSS: type: markup group: CSS diff --git a/samples/SAS/data.sas b/samples/SAS/data.sas new file mode 100644 index 00000000..e4e9bb07 --- /dev/null +++ b/samples/SAS/data.sas @@ -0,0 +1,17 @@ +/* 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; \ No newline at end of file diff --git a/samples/SAS/proc.sas b/samples/SAS/proc.sas new file mode 100644 index 00000000..80cc1676 --- /dev/null +++ b/samples/SAS/proc.sas @@ -0,0 +1,15 @@ +/* PROC examples for Linguist */ + +proc surveyselect data=work.data out=work.boot method=urs reps=20000 seed=2156 sampsize=28 outhits; + samplingunit Site; +run; + +PROC MI data=work.boot out=work.bootmi nimpute=30 seed=5686 round = 1; + By Replicate; + VAR Variable1 Variable2; +run; + +proc logistic data=work.bootmi descending; + By Replicate _Imputation_; + model Outcome = Variable1 Variable2 / risklimits; +run; \ No newline at end of file