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 (February 2003, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


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