Date: Fri, 15 Sep 2006 10:42:18 -0400
Reply-To: "Liz L." <saslizy@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Liz L." <saslizy@YAHOO.COM>
Subject: SAS array with FORMAT statement
I have a bunch of variables need to be formated. So I used an array with
FORMAT statement. But it did not work. Please help me have a look at it.
TIA!!!
data test;
a= 1.23568;
b= 4.12345;
c=46.123456;
run;
data test1;
set test;
array t{*} a b c;
do i=1 to dim(t);
format t{i} 5.2; /* Not working, why??? */
end;
run;
|