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 (September 1996, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
In-Reply-To:   <199609181721.NAA01144@bosnia.pop.psu.edu>

Junjia

With version 6.11, you can add labels without writing a PROC. Just follow the selection path from the pull-down menus:

Globals-->Access-->Display libraries

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.

Jeanne Spicer Penn State

On Wed, 18 Sep 1996, Mike Rhoads wrote:

> Junjia, > > 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; > LABEL > VAR1 = 'Label for variable 1' > VAR2 = 'Label for the second variable' > <<add labels for other variables here>> > ; > run; > > Mike Rhoads > Westat > RhoadsM1@Westat.com > > <<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. > > junjia >


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