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 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?
In-Reply-To:  <6f01e285-44ec-4f10-9ecf-1bb9c5e3aa1c@u8g2000prd.googlegroups.com>
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.)

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Sdlentertd Sent: Tuesday, December 15, 2009 11:57 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Array use?

<snip>

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


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