Date: Wed, 9 Jan 2008 09:40:41 -0600
Reply-To: yingtao <yingtaoliu@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: yingtao <yingtaoliu@GMAIL.COM>
Subject: Re: inserting (not replacing!) characters into strings
In-Reply-To: <200801091209.m09Bl673027773@mailgw.cc.uga.edu>
Content-Type: text/plain; charset=ISO-8859-1
Data_null's picture format is a good way. I played with the code by
modifying as following, and
and found *2* issues:
*
1.* The Character values have been converted to numeric values;
*
2.* Due to *1*, the actual data set does not keep the format when you export
(e.g proc export to excel);
*
3.* if I put format ptid pt10. after ptid = put(input(id,*8.*),*10.*), I got
error " The format $PT was not found or could not be loaded.
", why the order matters?
thanks!
*
data* b;
do id = '02301111';
format ptid pt10.;
ptid = put(input(id,*8.*),*10.*);
put (_all_) (/=);
end;
*
run*;
On 1/9/08, wcw2 <wcw2@cdc.gov> wrote:
>
> Hey thanks so much y'all, this is a great help! : )
>
|