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 (April 2003, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 1 Apr 2003 01:14:58 -0500
Reply-To:   Ira Roberts <ir10@MAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Ira Roberts <ir10@MAIL.COM>
Subject:   Re: Infile Statement : Immediate response reqd.
Comments:   To: soundblast100@YAHOO.COM

Read the age as CHAR (ageCH $) rather than numeric.

Then use the logic: if index(ageCH,'*') ne 0 then age=.; else age=ageCH + 0;

Regards IRa

On Mon, 31 Mar 2003 20:13:09 -0800, SASler <soundblast100@YAHOO.COM> wrote:

>wealth age region >37 50 M >24 88 U >14 64 A >13 * U >13 66 U >11.7 72 E > >i need to copy this text file into sas. when i tried to use the infile >statement, INFILE "C:\test\copy.txt" FIRSTOBS=2; >i am getting an error "invalid data for age". >how do i copy this file? Thanks all.


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