You may not actually need to create a new dataset as you can use the where clause with procedures as well;
proc freq data=dataset2 (where=(salary>10000));
table <variables>;
run;
2025 SAS Hackathon: There is still time!
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!