SAS:如何计算除某些字符变量之外的所有字符变量的频率

A s*_*ler 2 sas

我知道我可以使用以下内容计算所有Chars的频率:

proc freq data=sashelp.class;
tables _char_;
run;
Run Code Online (Sandbox Code Playgroud)

但是,有没有办法排除一些变量?我想做的事情如下:

proc freq data=sashelp.class;
tables _char_ EXCEPT VAR1 VAR2;
run;
Run Code Online (Sandbox Code Playgroud)

非常感谢!

Kir*_*an 5

你可以使用drop =,如下所示.

proc freq data=sashelp.cars(drop=origin make);
  tables _char_;
   run;
Run Code Online (Sandbox Code Playgroud)