|Date: ||Wed, 15 Jul 2009 14:17:43 -0500|
|Reply-To: ||Joe Matise <snoopy369@GMAIL.COM>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||Joe Matise <snoopy369@GMAIL.COM>|
|Subject: ||Re: Query around label|
|Content-Type: ||text/plain; charset=ISO-8859-1|
I think this would be easier...
call execute("proc datasets library=work nolist; modify test; label
On Wed, Jul 15, 2009 at 1:58 PM, Mary <firstname.lastname@example.org> wrote:
> That's a bit trickier than it looks; I got it to work by putting the label
> on the symbol table but then had to wait until the data step finished to be
> able to use it, thus the proc datasets in the solution rather than just code
> in the same data set for the label.
> data temp;
> label x ='another label';
> data temp2;
> set temp;
> call symput('label_x',vlabel(x));
> proc datasets library=work nolist;
> modify temp2;
> label y="&label_x";
> --- Rajat.Mathur@DIAMONDCONSULTANTS.COM wrote:
> From: "Mathur, Rajat" <Rajat.Mathur@DIAMONDCONSULTANTS.COM>
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Query around label
> Date: Wed, 15 Jul 2009 12:51:00 -0500
> 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.