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 (August 2002, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 29 Aug 2002 15:45:39 -0400
Reply-To:     "Nevseta, Floyd G" <Floyd.G.Nevseta@BANKOFAMERICA.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Nevseta, Floyd G" <Floyd.G.Nevseta@BANKOFAMERICA.COM>
Subject:      Re: second simlpe question
Comments: To: miranda <mixiao@UCLA.EDU>
Content-type: text/plain; charset=iso-8859-1

This does the trick. Try it.

data test; length new $ 35; input values $20.; new = '"' || trim(tranwrd(values, ',', '","')) || '"'; cards; 0201,0101,0401 38289 ; run;


-----Original Message----- From: miranda [mailto:mixiao@UCLA.EDU] Sent: Thursday, August 29, 2002 2:52 PM To: SAS-L@LISTSERV.UGA.EDU Subject: second simlpe question


I have a simple dataset like below, I would like my new vlaues like this "0201","0101","0401" "38289" ;

data test; input values $20.; cards; 0201,0101,0401 38289 ;

Does anyone know how to translate it?


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