Date: Mon, 1 Jun 2009 05:53:07 -0700
Reply-To: RAVI <ravikumar.anni@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: RAVI <ravikumar.anni@GMAIL.COM>
Organization: http://groups.google.com
Subject: Re: Remove leading zeros...
Content-Type: text/plain; charset=ISO-8859-1
Hi
Try this, you will get your expected output.
data trial(rename=x=zero);
informat zero $16.;
format zero $16.;
input zero $ name $;
x=input(zero,best12.);
drop zero;
cards;
00124 ancd
00002154 cdsfs
000245755 aswda
000100245 cdsew
;
proc print; run;
Regards,
Ravikumar
|