Date: Fri, 2 Sep 2005 10:08:49 -0700
Reply-To: tanwan <tanwanzang@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: tanwan <tanwanzang@YAHOO.COM>
Organization: http://groups.google.com
Subject: Re: assigning many variable labels?
In-Reply-To: <1125598695.996985.100270@g47g2000cwa.googlegroups.com>
Content-Type: text/plain; charset="iso-8859-1"
Change the 7 in the macro to 100 and you be home and dry.
%macro relabel;
label
%do jj=1 %to 7;
variable&jj = "Variable &jj Recorded"
%end;
%mend relabel;
options label macrogen;
data recorded;retain variable1-variable7 5;
%relabel;
proc contents; run;
|