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 (July 2007, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 2 Jul 2007 14:46:17 -0400
Reply-To:     Nathaniel.Wooding@DOM.COM
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Nat Wooding <Nathaniel.Wooding@DOM.COM>
Subject:      Re: SAS Scan Function with Long String
Comments: To: John8202 <John8202@GMAIL.COM>
In-Reply-To:  <1183401202.782062.176500@m36g2000hse.googlegroups.com>
Content-Type: text/plain; charset="US-ASCII"

John

The documentation for the SCAN functions does not say that the string to be scanned is limited to 200 characters but rather that if you scan out a piece of the string and assign it to a new variable AND that variable has not yet been defined, then the new variable will have a default length of 200. If you use a length statement prior to the scan statement and assign a longer value to the variable, then the new variable will not be limited to 200.

Nat Wooding Environmental Specialist III Dominion, Environmental Biology 4111 Castlewood Rd Richmond, VA 23234 Phone:804-271-5313, Fax: 804-271-2977

John8202 <John8202@GMAIL.C OM> To Sent by: "SAS(r) SAS-L@LISTSERV.UGA.EDU Discussion" cc <SAS-L@LISTSERV.U GA.EDU> Subject SAS Scan Function with Long String

07/02/2007 02:33 PM

Please respond to John8202 <John8202@GMAIL.C OM>

Please help me. I have a string function with a length that is longer than 400. I would like to use the SCAN function on it, but it allows only 200 maximum. Please show me how to do this.

Regards.

----------------------------------------- CONFIDENTIALITY NOTICE: This electronic message contains information which may be legally confidential and/or privileged and does not in any case represent a firm ENERGY COMMODITY bid or offer relating thereto which binds the sender without an additional express written confirmation to that effect. The information is intended solely for the individual or entity named above and access by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.


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