Date: Tue, 23 Aug 2005 10:20:36 -0400
Reply-To: "Jun.Wan" <Jun.Wan@ORCMACRO.COM>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: "Jun.Wan" <Jun.Wan@ORCMACRO.COM>
Subject: Re: about the behavior of INDEX function
In-Reply-To: <20050823141657.AB52789F1C@mailgw.orcmacro.com>
Content-Type: text/plain; charset="us-ascii"
I just find out why!
Thank you!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jun Wan
Research Associate
ORC Macro
3 Corporate Square NE Suite 370
Atlanta GA 30329
Phone:404.321.3211
Fax: 404.321.3688
Email: Jun.Wan@orcmacro.com
-----Original Message-----
From: Jun Wan [mailto:jun.wan@ORCMACRO.COM]
Sent: Tuesday, August 23, 2005 10:17 AM
To: SPSSX-L@LISTSERV.UGA.EDU
Cc: Jun Wan
Subject: about the behavior of INDEX function
Hi,
I have a dataset have a string variable named 'ax' like
';1;' ';8;16;'
It begin and end with a ';' and all number seperated by ';'
syntax like
COMPUTE i1=INDEX(ax,';1;').
IF (i1=0) i1=INDEX(ax,';1 ').
set i1 to 0 when ax is ';4;8;16;'
Can anyone know why?
Thank you
Jun
|