select station, count(distinct ssn) as unique_ssn, count(distinct invoice_number) as unique_invoice, count(*) as num_line, sum(amounts) as total_dollar
from have
group by station;
quit;
Catch up on SAS Innovate 2026
Nearly 200 sessions are now available on demand in the Innovate Hub.