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 2005, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 9 Feb 2005 14:00:27 -0800
Reply-To:     Jared <jaredhellman@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Jared <jaredhellman@GMAIL.COM>
Organization: http://groups.google.com
Subject:      proc freq - number of vars I need to cross will vary
Content-Type: text/plain; charset="iso-8859-1"

Hi all, I was wondering if there was an easy way to set up a proc freq (without using a macro) which crosses a varying number of variables. Here's the setup to show you what I mean...

I have a dataset which will have a varying number of variables: techdx_1 techdx_2 techdx_3 . . . techdx_N

The macro variable NUMDX will hold the number N

I want to cross all the techdx variables in a single table in a proc freq. I tried

proc freq data=mydata; tables techdx_1-techdx_&NUMDX; run;

but this creates a table for each techdx variable. Remember I need to do this without writing a macro if possible. Thanks


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