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 (January 2006, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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?
Comments: To: sas-l@uga.edu
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


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