| Date: | Thu, 18 May 2000 16:39:38 -0700 |
| Reply-To: | Ya Huang <ya.huang@AGOURON.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Ya Huang <ya.huang@AGOURON.COM> |
| Subject: | Re: label |
|
| Content-Type: | text/plain; charset=us-ascii |
Here is one:
data data1;
x1=1; x2=2;
label x1='label 1' x2='label 2';
data data2;
x1=11; x2=22;
options nocenter;
proc print data=data1 label;
proc print data=data2 label;
data data1 data2;
set data1 (in=d1) data2 (in=d2);
if d1 then ouput data1;
if d2 then ouput data2;
proc print data=data1 label;
proc print data=data2 label;
run;
label label
OBS 1 2
1 1 2
--------------------------
OBS X1 X2
1 11 22
--------------------------
label label
OBS 1 2
1 1 2
--------------------------
label label
OBS 1 2
1 11 22
HTH
Ya Huang
Frances Yasomin wrote:
>
> Hello all,
>
> I have 2 datasets: data1 and data2, the variables in these 2 datasets
> are identical (say, both datasets have variables var1-var10) but with
> different attributes. There is no label attached to data2, how can I
> grab the label from data1 to data2?
>
> Thanks in advance for the help.
>
> Frances
|