Date: Wed, 16 Dec 2009 13:47:38 -0800
Reply-To: Sdlentertd <sdlentertd@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Sdlentertd <sdlentertd@GMAIL.COM>
Organization: http://groups.google.com
Subject: Array for different formats
Content-Type: text/plain; charset=ISO-8859-1
I have three fields (each one is in different format) in one dataset,
how can I use "array" function in one datastep.
ID - character, Price - Numeric, Date - Date9. format
This does NOT work:
data new;
set have;
array a_ID(*) $ ID1-ID10;
array b_Price(*) Price1-price10;
array c_date(*) Date1-Date10;
do i=1 to 10 until (compress(upcase(a_ANOTHER_option(i))) = "NO");
a_ID(i) = a_ID(1);
b_Price(i) = b_Price(1);
c_date(i) = c_date(1);
what am I doing wrong?
|