*DATA MINING SAS NOTES; *Introduction to SAS; ******************************************************; *SAS Documentation can be found here; *https://support.sas.com/ *https://support.sas.com/documentation/cdl/en/allprodsproc/68038/HTML/default/viewer.htm#procedures.htm; *SAS Code for the examples from the packet is here; *http://www.prenhall.com/cody/; ******************************************************; *This is a DATA block, where we define our data set; data mydata; input x y; datalines; 1 4 3 8 5 9 ; *This is a PROC statement, where we get SAS to do something with our data; proc print data=mydata; run; *Summary statistics; proc means data=mydata; run; *Adding optional arguments; proc means data=mydata MEAN STD VAR; TITLE "Summary Statistics for Example Data"; OUTPUT out=mydata2; run; *Printing the Output From PROC MEANS; proc print data=mydata2; run; *Doing Calculations in a Data Step; data mydata; input x y; z=x+y; datalines; 1 4 3 8 5 9 ; proc print data=mydata; run;