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
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:
On Mon, 21 Nov 2011 15:46:01 +0000, Painter, John (jsp9a)
>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
>Thank you very much for your patience and assistance!