Date: Wed, 15 Feb 2012 10:03:32 -0500
Reply-To: Nat Wooding <nathani@VERIZON.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Nat Wooding <nathani@VERIZON.NET>
Subject: Re: combine two variables into one
Content-Type: text/plain; charset="US-ASCII"
Here are two solutions. The one using Proc transpose does not require that
you write out all of the names of the variables that you want to work with.
You could also write the second method using an array and a do loop.
input AL KL;
Proc Transpose data = start out = want (rename = ( Col1 = LM) Keep = col1);
LM = AL;
LM = Kl;
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Soumi
Sent: Wednesday, February 15, 2012 9:35 AM
Subject: combine two variables into one
I have a dataset like this:
I want a new variable which will be:
Could anyone please help?