Date: Thu, 19 Sep 1996 11:40:24 -0700
Reply-To: "John K. Troxell" <jktroxe@FPE.ERENJ.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: "John K. Troxell" <jktroxe@FPE.ERENJ.COM>
Organization: Exxon R&E, NJ; Opinions not those of the Company.
Subject: Re: adding lable
JUNJIA@morst.govt.nz wrote:
>
> I have a sas dataset with 150 variables. Now I would like to add a lable
> for each variable. Could someone tell me which is best way to do that.
> Thanks in advance.
>
> junjia
Maybe this is inefficient or too simple but I would do this:
DATA TEMP;
SET what.ever;
LABEL var1="First variable label here"
var2="Second variable label here"
.
.
var150="150th variable label here";
RUN;
PROC CONTENTS DATA=TEMP;
RUN;
Where "what.ever" is the existing dataset name, and "var1-var150"
are the names of the 150 variables.
If everything looks hunky-dory on the output then I'd change
"TEMP" to "what.ever" and do it again.
John