Date: Wed, 16 Dec 2009 15:13:33 -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: <e4df5ec9-d04f-4fe5-8743-8fdc16365e71@13g2000prl.googlegroups.com>
Content-Type: text/plain; charset="us-ascii"
Shoot the person who designed your data set.
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Sdlentertd
Sent: Wednesday, December 16, 2009 1:08 PM
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- Hide quoted text -
>
> - Show quoted text -
But the statements bellow do not work
array a_ID(*) $ ID1-ID10; (character)
array b_ID(*) ID1-ID10; (numeric)
Error message: All variables in array list must be the same type,
i.e., all numeric or character.
|