Date: Wed, 15 Jul 2009 15:09:59 -0400
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Mike Zdeb <msz03@ALBANY.EDU>
Subject: Re: Query around label
hi ... and you can use it as follows (part 2 of Joe's answer) ...
label x ='some label';
proc datasets lib=work nolist;
label y = "&label_x";
proc contents data=temp2;
ods select variables;
Alphabetic List of Variables and Attributes
# Variable Type Len Label
1 x Char 1 some label
2 y Num 8 some label
U@Albany School of Public Health
One University Place
Rensselaer, New York 12144-3456
> The function vlabel() returns the label from a variable.
> On Wed, Jul 15, 2009 at 12:51 PM, Mathur, Rajat <
> Rajat.Mathur@diamondconsultants.com> wrote:
>> Here is my problem around labels:
>> data x.temp;
>> label x ='some label';
>> data x.temp2;
>> set x.temp;
>> Now I need the same label for y as it is for x.
>> Can anyone help me with this?
>> Thanks in advance
>> This transmission may (i) be subject to contractual, statutory or other
>> obligations of confidentiality; (ii) contain "protected health information "
>> as defined in HIPAA or "non-public personal information " as defined under
>> data privacy laws; or (iii) be otherwise strictly confidential. If you are
>> not the intended recipient of this message, you may not disclose, print,
>> copy or disseminate this information. If you have received this in error,
>> please reply to the sender only and delete the message. Unauthorized
>> interception of this e-mail is a violation of federal law. Diamond's
>> operating subsidiary in North America is Diamond Management & Technology
>> Consultants NA, Inc.; in the U.K. and Europe, Diamond Management &
>> Technology Consultants Limited; and in Asia, Diamond Management & Technology
>> Consultants Pvt. Ltd.