|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|
Just specify the data set with the labels last and they will be kept.
label v= 'named';
set a b;
set b a;
AB will have a blank label but BA will have the desired label.
"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
Subject: Set command and keep labels
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.