Date: Sun, 11 Jan 1998 15:25:18 +0800
Reply-To: Rami Zwick <mkzwick@UXMAIL.UST.HK>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Rami Zwick <mkzwick@UXMAIL.UST.HK>
Organization: HKUST
Subject: Using array reference in a function
Content-Type: multipart/alternative;
Friends:
I am facing the following puzzle that I do not understand.
I have a data set with 10 variables (Col1-Col10). I use the following
statement:
> data yy; set yy;
> array item{10} col1-col10;
> s=4;
> min2 = min(of item{1}-item{s});
>
For some reason the min function produces an error:
> 1369 min2 = min(of item{1}-item{s});
> -
> 78
>
> ERROR 78-322: Expecting a ','.
>
I do not understand why. Any suggestions will be appreciated.
Thanks, Rami.
[text/html]
|