LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (February 2010, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 3 Feb 2010 05:32:34 -0500
Reply-To:   Jim Groeneveld <jim.1stat@YAHOO.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Jim Groeneveld <jim.1stat@YAHOO.COM>
Subject:   Re: question for proc freq

Hi DS,

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 PROC CONTENTS.

But I agree that it would be nice if SAS would support your expectation.

Regards - Jim. -- Jim Groeneveld, Netherlands Statistician, SAS consultant http://jim.groeneveld.eu.tf

On Tue, 2 Feb 2010 11:02:43 -0800, df ss <tggsun@YAHOO.COM> wrote:

>Hello SASor, >I wrote the following code: >proc freq data=abc noprint; >table _character_ / out=list4abc; >run; >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 ? >Thanks, >dd sf


Back to: Top of message | Previous page | Main SAS-L page