Date: Sat, 28 Jun 2003 09:47:23 +0100
Reply-To: Roland <roland@RASHLEIGH-BERRY.FSNET.CO.UK>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Roland <roland@RASHLEIGH-BERRY.FSNET.CO.UK>
Organization: Universe Monitors
Subject: Re: Character variables concatenation
You could do a little test like this........
9 data _null_;
10 length a b c $ 8;
11 a='a';b='b';c='c';
12 newvar=trim(a)||trim(b)||trim(c);
13 put newvar=;
14 len=vlength(newvar);
15 put len=;
16 run;
newvar=abc
len=24
"Jeff Morison" <jmt_mtf@YAHOO.COM> wrote in message
news:20030627211322.50490.qmail@web40802.mail.yahoo.com...
> What happens if we don't specify length statement
> for a new character variable which is obtained by
> concatenating 3 existing character variables?, what
> would be the length of new var?, and what's the max
> length the new vairable can assume?.
>
> TIA,
> Jeff
>
>
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
|