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 (November 2011, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 21 Nov 2011 11:00:54 -0500
Reply-To:     Arthur Tabachneck <art297@ROGERS.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Arthur Tabachneck <art297@ROGERS.COM>
Subject:      Re: advice for a macro to label tables based on variable in data
              set
Comments: To: John Painter <jsp9a@ESERVICES.VIRGINIA.EDU>

I don't think you need a macro for doing what you want. Couldn't you just include a by statement in your proc freq and use #byval? Take a look at: http://www2.sas.com/proceedings/sugi23/Coders/p75.pdf

HTH, Art ------- On Mon, 21 Nov 2011 15:46:01 +0000, Painter, John (jsp9a) <jsp9a@ESERVICES.VIRGINIA.EDU> wrote:

>Hello, > >I am really rusty at writing macros so am hoping the collective wisdom of the list can help me get (re)started. I have a data set with ~30 distinct subgroups. I need to run a basic frequency analysis with the same set of variables for each subgroup and would like to reduce hand editing (and increase efficiency) by labeling each table with the name of the subgroup. The subgroup name and ID is part of the data file (or it can be put into an external file). > >Thank you very much for your patience and assistance! > >Best, >John


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