| Date: | Thu, 28 Jan 2010 16:50:47 -0800 |
| Reply-To: | Arthur Tabachneck <art297@NETSCAPE.NET> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Arthur Tabachneck <art297@NETSCAPE.NET> |
| Subject: | Re: Converting Numeric MMDDYY10. into 11. numeric |
|
| In-Reply-To: | <ab1232e7-b50a-4284-ab7c-cdbb437e1e57@b9g2000yqd.googlegroups.com> |
| Content-Type: | text/plain; charset=ISO-8859-1 |
I think you may only need a format like: YYMMDDN8. e.g.,
data have;
informat DateOld date9.;
format DateOld mmddyy10.;
input DateOld;
cards;
3nov2009
;
data want;
set have;
DateNew = put (DateOld, YYMMDDN8.);
run;
HTH,
Art
-------------
On Jan 28, 6:10 pm, Sdlentertd <sdlente...@gmail.com> wrote:
> I have this problem:
> DateOld MMDDYY10. (numeric) format and looks like this 11/03/2009
> and I want to create a new date based on DateOld in this format
> DateNew 11. (numeric) which will look like this 20091103
>
> i am trying this but it doesn't work
> DateNew = input( put (DateOld, 8.), YYMMDD8.);
> Thanks for help.
|