Date: Tue, 27 Jun 2006 12:57:07 -0500
Reply-To: Yu Zhang <zhangyu05@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Yu Zhang <zhangyu05@GMAIL.COM>
Subject: Re: Maximum length of a string
In-Reply-To: <697B27DC3052C74FB9A3A3FACED43ED8341555@njb-ms1>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Kumar,
I just made a slightly change on the code you provided. the entire value is
showed up.
Let me know,if I misunderstood your question.
data test;
length x y $200. z $400.;
x='RETROPERITONEAL AND LEFT GREATER THAN RIGHT, PELVIC
LYMPHADENOPATHY. MAJORITY OF NODES
ARE STABLE IN SIZE COMPARED TO PRIOR EXAMS, SLIGHT INCREASE IN
SOME RETROPERITONEAL LYMPH NODES, PARTICULARLY IN';
y='THE PERIAORTIC AND LEFT PERIAORTIC REGION.';
z=trim(x)||' '|| trim(y);
run;
options linesize=128;
proc report data=test nowds ;
columns z;
define z /'test' width=96 display flow;
run;
On 6/27/06, Sridhar, Kumar <nsridhar@medarex.com> wrote:
>
> Hi all:
>
> I have to character variables (each of length $200) that I
> concatenate. I would like the resulting variable to be of length $400
> and show me the entire value
>
> Of the variable. Unfortunately, right now it shows me the variable1.
> Any ideas how to do this would be greatly appreciated.
>
>
>
> data test;
>
> length x y $200. z $400.;
>
> x='RETROPERITONEAL AND LEFT GREATER THAN RIGHT, PELVIC
> LYMPHADENOPATHY. MAJORITY OF NODES
>
> ARE STABLE IN SIZE COMPARED TO PRIOR EXAMS, SLIGHT INCREASE IN
> SOME RETROPERITONEAL LYMPH NODES, PARTICULARLY IN';
>
> y='THE PERIAORTIC AND LEFT PERIAORTIC REGION.';
>
> z=x||' '|| y;
>
> run;
>
>
>
> proc report data=test;
>
> columns pid z;
>
> define z /'test' display flow;
>
> run;
>
>
>
> Thanks and regards
>
>
>
> Kumar Sridhar
>
>
>