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 1998, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 15 Jul 1998 22:13:13 +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: Ctrl-Z char in ASCII infile
In-Reply-To:  <900516832.2018930.0@vm121.akh-wien.ac.at>

To stop the SAS System checking input binary values of the characters, instead of defaulting to $100. try the $char100. informat.

see in example below

In article <900516832.2018930.0@vm121.akh-wien.ac.at>, Lex Jansen ++31 (0)412 661124 <f.jansen@ORGANON.OSS.AKZONOBEL.NL> writes >Hi, > >I am reading in an ascii file in a datastep (infile). >Some of the character variables contain aa end-of-file character (ctrl-Z). >SAS stop reading when that happens. So I have to delete all ctrl-Z characters >by hand. Is there an alternative ? >The reading of the file goes like this: > >data test; > infile 'myfile.txt' missover; > length txtline $ 100; > input txtline; input txtline $char100.; >run; > > >****************************************** >Lex Jansen >Technical Support & Development >NV Organon >DCTO/Biometrics >Tel: (++31) 412 / 661124 >Fax: (++31) 412 / 662516 >email: f.jansen@organon.oss.akzonobel.nl >******************************************

it may need the truncover option on the infile statement....

good luck -- Peter Crawford


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