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 (June 2003, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 24 Jun 2003 17:04:44 +0200
Reply-To:     Ace <b.rogers@VIRGIN.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Ace <b.rogers@VIRGIN.NET>
Subject:      Re: vname, assigning character variable to itself
Content-Type: text/plain; charset=us-ascii

On 24 Jun 03 14:38:59 GMT, Janis.Jekabsons@DRESDNER-BANK.COM (Janis Jekabsons) wrote:

>Don, > >Thanks for the quick reply. In this respect, I made this observation/test: > >1 data one; >2 length a c $4. b$8.; >3 a="WWWW"; b=c||' '|| a; >4 put b=; >5 run; > >NOTE: Variable C is uninitialized. >B=WWW >NOTE: The data set WORK.ONE has 1 observations and 3 variables. >NOTE: DATA statement used: > real time 0.02 seconds > cpu time 0.01 seconds > >Actually, I was expecting B= WWW. This must be happening somewhere >since the fourth "W" _is_ gone.

It's the put statement that's stripping leading blanks, not the concatenate. If you look at the output dataset you'll see it has five blanks in it. Or try putting format b $char8 ; in the step, to retain leading blanks .

HTH -- Ace in Basel - bruce dot rogers at roche dot com


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