|Date: ||Wed, 16 Dec 2009 11:29:01 -0800|
|Reply-To: ||"Schwarz, Barry A" <barry.a.schwarz@BOEING.COM>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||"Schwarz, Barry A" <barry.a.schwarz@BOEING.COM>|
|Subject: ||Re: Array use?|
|Content-Type: ||text/plain; charset="us-ascii"|
Arrays are not related to datasets but to variables. It is perfectly acceptable to have multiple arrays dealing with different variables, such as
ARRAY a_array(*) $ var_a1-var_a9;
ARRAY b_array(*) var_b1-var_b23;
Different arrays can have different dimensions (9 vs 23 in the example) and types (character vs numeric).
Date9. is a format which has nothing to do with arrays. It only affects how a numeric variable is converted to a character string in the PUT function or the PUT statement. (Date and time variables are just normal numeric variables with special meanings attached to the values.)
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Sdlentertd
Sent: Tuesday, December 15, 2009 11:57 AM
Subject: Re: Array use?
This is great and works, but
what if one of the fields that has to be in array is in different
format than the other, for example: ID1 is character but another field
is Date which is Date9. and another field Price which is numeric....
How do i put them all in one array? or how can I do two seperate
arrays for one dataset? Thank you