Date: Sat, 18 Sep 2004 23:59:23 +0200
Reply-To: zbiggy <zbiggy@NOSPAM.POCZTA.ONET.PL>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: zbiggy <zbiggy@NOSPAM.POCZTA.ONET.PL>
Organization: Aster City Cable
Subject: Re: How can I merge such two datasets?
Użytkownik "sean" <xiangyang.ye@gmail.com> napisał w wiadomości
news:7eacb1e1.0409181323.4dd92a65@posting.google.com...
>I have two datasets:
>
> x1 x2 x3;
> --------
> 1 2 3
> 4 5 6
>
> y1 y2 y3;
> --------
> 10 11 12
> 21 22 23
> ;
>
> My expected is:
> y1 y2 y3
> -------
> 1 2 3
> 4 5 6
> 10 11 12
> 21 22 23
> ;
>
just create a new one, like this:
data f3;
set f1(rename=(x1-x3=y1-y3)) f2;
run;
best regards;
zbiggy.
|