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 (May 1997, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 7 May 1997 16:25:37 EDT
Reply-To:     rhoadsm1@WESTATPO.WESTAT.COM
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Mike Rhoads <rhoadsm1@WESTATPO.WESTAT.COM>
Subject:      Re: no subject (file transmission)
Comments: To: "C.J. Davis" <cjdavis@KUDONET.COM>

<<C.J. Davis asks>> I would like to perform proc FREQ on all but a few variables of a SAS dataset...unfortunately, FREQ does analysis on all vars including the ones I don't want analyzed, which are taking up the greater part of the computation time. how do I exclude these few without having to create another dataset andlist the 100's of vars i *do * want analyzed??? <<end question>>

Take advantage of the DROP= data set option when running PROC FREQ to exclude the variables you don't want, as is illustrated by the code below:

data temp; a = 1; b = 2; c = 3; run;

/* We don't want to waste time on a and c */ proc freq data=temp (drop = a c); run;

Mike Rhoads Westat RhoadsM1@Westat.com


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