Date: Mon, 23 Jan 2006 15:12:36 -0800
Reply-To: Mindy <master2005_sas@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Mindy <master2005_sas@YAHOO.COM>
Organization: http://groups.google.com
Subject: scan?
Content-Type: text/plain; charset="iso-8859-1"
Here is the code I saw:
if scan(city, -1,' ')='CA' then city=substr(city, 1, len-2);
I understand what results I would get after run the code. But I want to
learn more about the "-1"in scan. Any articles or any explanation are
very welcome. Thanks.
Mindy
|