Date: Sat, 22 Mar 2008 12:27:21 -0700
Reply-To: "Virtual SAS(r) Users Group" <sfbay0001@AOL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Virtual SAS(r) Users Group" <sfbay0001@AOL.COM>
Subject: Re: SAS variables greater than 200 characters
Content-Type: text/plain; charset=UTF-8
Starting in SAS Version 8 character variables can have a length of up
to either 32000 or 32767 bytes, I can't remember which. Does that
Sierra Information Services
On Mar 22, 11:15�am, vikram.vaidyanat...@GMAIL.COM (VV) wrote:
> I have a variable that is greater than 200 characters long that I would
> like to read into SAS.
> While reading into SAS, I would like to split this variable into 2
> variables: VAR1 (containing the first 200 characters) and VAR2 (Containing
> the reamining characters).
> Also I want to make sure that if the 200th character is in the middle of a
> word, I dont want to have the word split between VAR1 and VAR2. I want to
> capture the portion before the whole word in VAR1 and then the remaining
> part in VAR2. Is there a smart way to do this in SAS?