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 (December 1999, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 21 Dec 1999 13:19:54 -0500
Reply-To:   Dennis Diskin <Dennis.Diskin.B@BAYER.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Dennis Diskin <Dennis.Diskin.B@BAYER.COM>
Subject:   Re: Set command and keep labels
Comments:   To: SAS-L@LISTSERV.VT.EDU
Content-Type:   text/plain

Panos,

Just specify the data set with the labels last and they will be kept.

An example: data a; v=1; label v= 'named'; data b; v=2; run;

data ab; set a b;

data ba; set b a;

AB will have a blank label but BA will have the desired label.

Regards, Dennis Diskin

"DDA.RFC-822=SAS-L@VM.MARIST.EDU/P=Internet/A= /C=us" on 12/21/99 12:54:05 PM Please respond to "S=PapanikolaouP/O=CARDIFF/P=UK.AC/A= /C=GB" @ X400 To: "DDA.RFC-822=SAS-L@VM.MARIST.EDU/P=Internet/A= /C=us"@X400 cc:

Subject: Set command and keep labels

Dear All,

I have two data sets such as ONE and TWO. The first one has proper labels for the variables. That is, the labels were created using the label statement. On the contrary, the second does have the label values for each of the variables. despite this, the names of the variables for both data-sets are exactly the same.

With this in mind, I want to use the SET command and create a new data-set for which the label value will come from data-set ONE. In other words, the variables in the new data-set will have the label values contained in data-set ONE. I would be grateful if you would suggest to me any ideas on how to carry on. SAS commenst and codes would be very welcome and well appreciated.

By the way, I think that SAS 6.12 version is Y2K compliant. Would you like to comment on this, please.

Thank you very mcuh indeed for your assistance. I look forward to hearing from you.

Regards Panos.


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