Date: Wed, 15 Feb 2012 06:58:14 -0800
Reply-To: "Jordan, Lewis" <Lewis.Jordan@WEYERHAEUSER.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Jordan, Lewis" <Lewis.Jordan@WEYERHAEUSER.COM>
Subject: Re: combine two variables into one
In-Reply-To: <201202151434.q1F5ahMI030171@waikiki.cc.uga.edu>
Content-Type: text/plain; charset="us-ascii"
data one;
input AL KL;
y=AL;var="AL";output;
y=KL;var="KL";output;
cards;
1 5
2 6
3 7
4 8
;
proc print;
run;
*****************************
Lewis Jordan
Weyerhaeuser:
Southern Timberlands R&D
Cell (Primary): 662-889-4514
Office: 662-245-5227
lewis.jordan@weyerhaeuser.com
*****************************
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Soumi Ray
Sent: Wednesday, February 15, 2012 8:35 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: combine two variables into one
Hello,
I have a dataset like this:
AL KL
1 5
2 6
3 7
4 8
I want a new variable which will be:
LM
1
5
2
6
3
7
4
8
Could anyone please help?
Thanks
Soumi
|