That is how it works in SAS: the output dataset contains only the results of
the last (or first? One anyway) variable in the list _CHARACTER_. To get
them all you might issue multiple TABLES statements for each char variable
and its output dataset name. If that would be too cumbersome you might use
some macro code that writes the SAS code for you based on the output from
But I agree that it would be nice if SAS would support your expectation.
Regards - Jim.
Jim Groeneveld, Netherlands
Statistician, SAS consultant
On Tue, 2 Feb 2010 11:02:43 -0800, df ss <tggsun@YAHOO.COM> wrote:
>I wrote the following code:
>proc freq data=abc noprint;
>table _character_ / out=list4abc;
>I hope to get the whole character variables frequency in the data set
list4abc, but I got the last character frequency list only. Is there a way
to get whole character variables frequency in one data set by using a single
proc freq ?