LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 2009, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: sas-l@uga.edu
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?


Back to: Top of message | Previous page | Main SAS-L page