Date: Tue, 2 Sep 2003 16:43:41 -0400
Reply-To: Art@DrKendall.org
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: "Arthur J. Kendall" <Art@DrKendall.org>
Organization: Social Research Consultants
Subject: Re: Alphanumeric format question-Juan Albertorio
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
try this untested syntax.
string newvar (a7).
compute newvar= concat(substr(oldvar,1,2),'.',substr(oldvar,3,2).
execute.
Hope this helps.
Art
Art@DrKendall.org
Social Research Consultants
University Park, MD USA
(301) 864-5570
Albertorio, Juan R. wrote:
> Dear SPSS list. I have a format question.
>
> I have a database that contains an alphanumeric variable of six digits -ICD
> 9 CM code.
> I want to assign a decimal point following the second character and keep the
> variable as alphanumeric.
>
> Did someone have any clue of how to do this?
>
> Thanks in advance.
>
> Juan
>
>
> ________________________________________________
> Juan R. Albertorio-Dmaz, MA
> Statistician
> Office of International Statistics, Office of the Center Director
> National Center for Health Statistics
> Center for Disease Control and Prevention
> 3311 Toledo Road - Metro IV- Suite 2427
> Hyattsville, MD 20782
> Tel. 301.458.4634
> Fax. 301.458.4043
> Email: JAlbertorio@cdc.gov
>
>
>
|