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 (April 2007, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: sas-l@uga.edu
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


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