I am quite new to SAS and I need help with the code below. Please find the code below I am trying to count the number of unique employees but it prints employees id and then finally prints number of employee at the end.
please help
data work.employees;
set tm.employees;
run;
/*sort work.employee by empid and output unique empids into unique_emps data set.*/
proc sort in=work.employees out=work.unique_emps nodupkey;
by empid;
run;
/*display empid number and Print total number of observations */
proc print data=work.unique_emps n='Total number of observations: '
noobs;
var empid;
title 'Number of unique employee that have granted bonus';
run;
thanks in advance
saqi
please help
data work.employees;
set tm.employees;
run;
/*sort work.employee by empid and output unique empids into unique_emps data set.*/
proc sort in=work.employees out=work.unique_emps nodupkey;
by empid;
run;
/*display empid number and Print total number of observations */
proc print data=work.unique_emps n='Total number of observations: '
noobs;
var empid;
title 'Number of unique employee that have granted bonus';
run;
thanks in advance
saqi