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 (May 1999, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 12 May 1999 21:00:29 +0100
Reply-To:   Peter Crawford <Peter@CRAWFORDSOFTWARE.DEMON.CO.UK>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   Peter Crawford <Peter@CRAWFORDSOFTWARE.DEMON.CO.UK>
Subject:   Re: line feeds inside strings
In-Reply-To:   <0004EC07.C21292@westat.com>

HERMANS1 <HERMANS1@WESTAT.COM> writes >How can one input variable values from a ASCII file when it has line feeds (MS >CR/LF Hex 0D0A) embedded within fields? We are trying to install a process that >will work within MS Windows 95. TIA Sig

$CHARw. will accept any binary value including '0D0A'x.

However, it would not see a cr/lf if those have already been used as the line-ending signal - default behaviour on windows platforms.

To overcome that problem there only two ways that I know 1 requires fixed record lengths -On the infile statement set RECFM=F and LRECL to the relevant value 2 requires you to read all columns, and performs slowly (unbuffered, I think) -On the infile statement set RECFM=U and LRECL to a large value. the file is treated as one large blob (binary large object ?)

good luck -- Peter Crawford (_knowledge_ is a poor substitute for *real* experience, but they make a great team)


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