PROC SQL;
CREATE TABLE count AS SELECT Customeroid,
(count(void) + count(smoke)) AS count
FROM WORK.Data AS Data
GROUP BY customeroid;
QUIT;
gives a count like this
12001 6
12004 6
12005 4
12006 4
12007 8
Is that what you were expecting or the results you didn't want?
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Registration is open
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!