Date: Wed, 11 Apr 2007 14:56:05 -0700
Reply-To: shanky <shankardasm@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: shanky <shankardasm@GMAIL.COM>
Organization: http://groups.google.com
Subject: Re: How can I use scan and substr function
In-Reply-To: <1176321849.802496.125310@q75g2000hsh.googlegroups.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi Ethan,
You could try this:
data x;
y='If I have, a variable called "REASON". Because the value for this
variable are too long, so I need to divided into two variables. found
out there is one problem, there are some value being
truncated.EOM';
reas1=substr(compress(y,'" , . '),1,100);
reas2=substr(compress(y,'" , . '),101);
run;
Shanky
|