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