Thanks Joe, I should have been more clear. example variables will be xxx_ a=
nd _xxx not col1-col&maxnum
=A0
Thanks=20
From: Joe Matise < XXXX@XXXXX.COM >
Subject: Re: Concatenating variables with same prefix or suffix
To: "Sanjeev Kommera" < XXXX@XXXXX.COM >
Cc: XXXX@XXXXX.COM
Date: Friday, 29 May, 2009, 11:41 PM
You might want to be a wee bit more specific - like give example data.
In general, yes, there are ways to concatenate variables with similar suffi=
x/prefix.
Prefix is easiest:
data test;
x1=3D2;
x2=3D3;
x3=3D4;
run;
data test2;
set test;
x =3D cats(of x:);
run;
Suffix usually requires some array manipulation or a proc sql macro call.=
=A0 Which makes more sense depends on your data.
-Joe
On Fri, May 29, 2009 at 12:51 PM, Sanjeev Kommera < XXXX@XXXXX.COM >=
Hi, Is there a way we could concatenate variables with either same prefix o=
r suffix in a dataset. (NOT concatenating datasets).
=A0
Also, did anyone try getting Mean(S. D.) or Min, Max (customized stats) fro=
m proc tabulate and would like to share the information. (Nope, not using d=
ata _null_ and concatenating, but getting an output from proc tabulate?)
=A0
Thanks very much.
sk
=A0 =A0 =A0Cricket on your mind? Visit the ultimate cricket website. Enter =
http://beta.cricket.yahoo.com
=0A=0A=0A Cricket on your mind? Visit the ultimate cricket website. En=
ter
http://beta.cricket.yahoo.com