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 (October 2003, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 23 Oct 2003 05:56:50 -0700
Reply-To:     Ivan <ivan_piffer@YAHOO.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Ivan <ivan_piffer@YAHOO.COM>
Organization: http://groups.google.com
Subject:      Re: problem with LENGHT statement
Content-Type: text/plain; charset=ISO-8859-1

ghellrieg@T-ONLINE.DE (Gerhard Hellriegel) wrote in message news:<200310151546.h9FFkea26866@listserv.cc.uga.edu>... > You should be aware, that you define the variable with the LENGTH > statement, but you don't read it in! So you should have your focus to the > INPUT, like Dennis said, not on the definition of the variable: > > data test; > length a $100; > infile ...; > input a : $100.; /* this is IMPORTANT */ > run; > > > > On Wed, 15 Oct 2003 10:08:48 -0400, Dennis Diskin > <diskin.dennis@KENDLE.COM> wrote: > > >Ivan, > > > >You need to show the code that you are using. How are you reading the > >input file ? It can make a difference where you put the length statement. > > > >Regards, > >Dennis Diskin > > > > > > > > > > > >Ivan <ivan_piffer@YAHOO.COM> > >Sent by: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> > >10/15/2003 09:53 AM > >Please respond to Ivan > > > > > > To: SAS-L@LISTSERV.UGA.EDU > > cc: > > Subject: problem with LENGHT statement > > > > > >Hi to everybody.... > >I have a very big problem with the lenght of my variables... > >I have a value that is very long like this > >"abcdefghilmnopqrstuvzabcdefghilmnopqrstuvz" in my input file. > >In my sas file I put this line LENGTH TESI $64; but the value is like > >unread. > >In my lst file the lenght is everytime 16 characters (128 bits). > > > >Please help me... > >Ivan

I've just received some sas files from my office. example:

DATA ANALISI; MISSING M; FILENAME FILE1 '/utenti/ivan/2003/raccolta.dat'; INFILE FILE1; LENGTH TESI $32; INPUT Lotto $ LOCALITA $ SIGLA $ TES_OLD $ TESI $ PIANTA COLORE $ AMIDO_1-AMIDO_8 Ind_TOP PESO Media_IR Media_SD Acidita Succo PESO_1-PESO_12 IR_2-IR_12 DU_1-DU_12 COMODO $;

My problem is LENGTH TESI $32;the values are cutted after 16 character. Ivan


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