Date: Wed, 8 Feb 2006 18:28:40 -0800
Reply-To: Dale Remus <hellangel_987@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Dale Remus <hellangel_987@YAHOO.COM>
Subject: Re: Combine data sets while renaming variables.
In-Reply-To: <592E8923DB6EA348BE8E33FCAADEFFFC13EED83B@dshs-exch2.dshs.wa.lcl>
Content-Type: text/plain; charset=iso-8859-1
Currently, I am doing it like this, I know there must
be an easy way out.
Thank you
data a;
set a;
x_density=density;
drop density;
run;
data b;
set b;
y_density=density;
drop density;
run;
data new;
merge a b;
run;
--- "Nordlund, Dan" <NordlDJ@DSHS.WA.GOV> wrote:
> Dale,
>
> Should the x values match or sync up with the y
> values? If so, how?
> Providing small example x and y datasets and showing
> what you want the final
> dataset to look like would greatly help people help
> you.
>
> Dan
>
> Daniel J. Nordlund
> Research and Data Analysis
> Washington State Department of Social and Health
> Services
> Olympia, WA 98504-5204
>
>
> > -----Original Message-----
> > From: SAS(r) Discussion
> [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Dale
> > Remus
> > Sent: Wednesday, February 08, 2006 5:45 PM
> > To: SAS-L@LISTSERV.UGA.EDU
> > Subject: Combine data sets while renaming
> variables.
> >
> > I have two data sets. One has variable x and
> density,
> > another has variable y and density, I would like
> > combine these two data sets such that the new data
> set
> > has four variables x x_density y and y_density.
> > Can you show me how to do it in one data step
> instead
> > of three seperate data steps.
> >
> > Thank you
> > Dale
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|