Date: Thu, 18 Sep 2003 12:34:53 -0700
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "David L. Cassell" <cassell.david@EPAMAIL.EPA.GOV>
Subject: Re: Scan function , carriage return as delimiter
Content-type: text/plain; charset=US-ASCII
Brad Smith <pbs@MAILANDNEWS.COM> wrote:
> I see from reading in the group that "09"x can be used with scan() to
> catch tab delimited items. Can anyone tell me the appropriate code to
> catch items delimited by carriage returns?
I see several people have given you answers. But there is not a
single 'newline' across all OSsa. Do you only want a carriage
return? That's "0D"x but that isn't a newline in many operating
systems. In some OSsa, the newline is "0A"x and in some it is "0D"x
and in some it is the two-character "0D0A"x .
Hopefully, you are working in a Windows system and you only need to
catch the 'carriage return' character "0D"x which is *not* a newline
in MS-DOS or Windows. Otherwise, I don't see how you're planning to
*get* the newline in the character string to begin with...
David Cassell, CSC
Senior computing specialist