LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (November 2003, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 10 Nov 2003 11:11:10 -0500
Reply-To:   Howard Schreier <Howard_Schreier@ITA.DOC.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Howard Schreier <Howard_Schreier@ITA.DOC.GOV>
Subject:   Re: Problem with words with space within them

When I run your code (using v. 9), I get all missing values. Why? Because the compiler makes TEXT a numeric variable by default, so the alphabetic values are all invalid. Of course, SASKSTITTEL values are also missing, because it is never initialized.

Perhaps there was a dollar sign after "text" in the INPUT statement. Then the result I get is

This life l

I can't come up with plausible code which will generate your results (that is, step over the embedded blanks in your first line but fail to do so in your third line).

On Sat, 8 Nov 2003 13:52:42 -0800, Rune Runnestoe <rune@FASTLANE.NO> wrote:

>When I run the following code in the SAS editor: > >data my_life; > length sakstittel $20; > input text; > cards; >This is my life >life >l i f e >; >run; > >I get >text >------ >This is my life >life >l > >How do I get "l i f e" instead of just "l" ? > > >Regards >Rune Runnestoe


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