I want to print values of all numeric variables (40 variables), so I can use the code below. But I want to suppress one variable to be printed. How can I do that?
proc print;
var _numeric_;
run;
Similarly, in another case, I want to output all numeric variables except one variable. How can I do that?
You can specify dataset name which you want to print and after that name add option which variable you want to drop.
proc print data=yourdata (drop=c);
var _numeric_;
run;
Regards,
Ieva
Missed SAS Innovate in Orlando?
Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.