LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) 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:         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


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