|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
>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=;
>NOTE: Variable C is uninitialized.
>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 .
Ace in Basel - bruce dot rogers at roche dot com