Date: Wed, 5 Feb 2003 15:46:21 -0600
Reply-To: Kevin Myers <KevinMyers@AUSTIN.RR.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Kevin Myers <KevinMyers@AUSTIN.RR.COM>
Subject: Re: combining character variables with a decimal
Content-Type: text/plain; charset="iso-8859-1"
length c $6;
c=substr(a,1,2)||"."||substr(a,3,2)||b;
----- Original Message -----
From: "Machelle W" <machelle@NETAXIS.CA>
Newsgroups: bit.listserv.sas-l
To: <SAS-L@LISTSERV.UGA.EDU>
Sent: Wednesday, February 05, 2003 3:27 PM
Subject: combining character variables with a decimal
> Hi Sas-L'ers:
>
> I have a 4 digit character variable 'A' and a 1 digit character
> variable 'B'.
> What I need is to create a 6 digit character variable named 'C' of the
> form 'xx.xxx' as follows:
>
> A B C
> 4801 0 48.010
> 4802 2 48.022
> 4809 1 48.091
> 4902 1 48.021
>
>
> I know I did this years ago, but that programming is stuck on a hard
> disk which is unavailable at the moment. Any help would be greatly
> appreciated.
>
> Thanks,
>
> Lea
|