October 2019
Intermediate to advanced
430 pages
19h 4m
English
%let job=Analyst; /*1*/ data work.staff; /*2*/ keep employeeID jobtitle salary; set certadv.staff; where jobtitle contains "&job"; /*3*/ total+salary; count+1; call symputx('avg',put(total/count,dollar9.)); /*4*/ run; title "&job Staff"; /*5*/ footnote "Average Salary: &avg"; /*6*/ proc print data=work.staff; sum salary; run;
| 1 | The %LET statement creates the
macro variable Job and assigns the value of Analyst. |
| 2 | The DATA step creates a temporary SAS data set Work.Staff. Work.Staff that contains only the variables ... |
Read now
Unlock full access