Help using Base SAS procedures

How to print all numeric values except 1 variable

Reply
Contributor
Posts: 52

How to print all numeric values except 1 variable

Hi Sir,

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?

Thanks for teaching.

Frequent Contributor
Posts: 82

How to print all numeric values except 1 variable

Hi,

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

Ask a Question
Discussion stats
  • 1 reply
  • 568 views
  • 4 likes
  • 2 in conversation