Date: Wed, 18 Sep 1996 13:42:44 -0400
Reply-To: "Jeanne M. Spicer" <spicer@POP.PSU.EDU>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: "Jeanne M. Spicer" <spicer@POP.PSU.EDU>
Subject: Re: adding lable
With version 6.11, you can add labels without writing a PROC. Just
follow the selection path from the pull-down menus:
Select the library which contains your dataset.
Select the dataset you wish to modify.
When the variable list is displayed, type 'r' next to the variables you
want to label. You can rename, format or label any variable by just
filling in the blanks.
On Wed, 18 Sep 1996, Mike Rhoads wrote:
> Assuming your data are on disk, the easiest way to add variable
> labels is with PROC DATASETS. This is very efficient in that SAS does
> not need to read through all your data records in order to change the
> labels, as it would have to do if you used a data step. The code would
> look something like this:
> PROC DATASETS LIB=yourlibname;
> MODIFY yourSASdatasetname;
> VAR1 = 'Label for variable 1'
> VAR2 = 'Label for the second variable'
> <<add labels for other variables here>>
> Mike Rhoads
> <<original question below>>
> 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.