SAS Training: How to Learn SAS Programming Fast

data empincome; /* Name you chose for the output dataset */
infile '/home/ermin0/salary.txt'; /* File path of dataset*/
input Year Income; /* Names of the variables in the dataset */
run; /* Executes the data step */
We have created an output dataset.
data empincome; 
infile '/home/ermin0/salary.txt';
input Year Income;
if Income < 26000; /* We are filtering by Income Variable */
run;
Filtering our data
data empincome; 
infile '/home/ermin0/salary.txt';
input Year Income;
if Income < 26000; /* We are filtering by Income Variable */
run;
data sales2;
set sales; /* Set allows you to read an existing dataset. */
more statements;
more statements;
more statements;
run;
proc corr data=empincome plots=SCATTER(NVAR=ALL);
var Gender Income; /* The Gender variable is coded 0/1 here*/
run;

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store