Date: Tue, 24 Mar 2009 12:08:02 -0400
Reply-To: Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Subject: Re: AAAA-MM-DD format
I don't understand fully the question. To use INPUT you need a char
argument. Try:
DATA TEMP;
datenotif = "2007-01-02";
DATENOTIF1 = INPUT(DATENOTIF,YYMMDD10.);
put datenotif1 date9.;
RUN;
What is it, what's in your dataset? If it is not a char (how should it be
numeric with the dashs in it??), what is it else? If it is a SAS date
value which only looks like 2007-01-02 (because there is a format on it),
why you use INPUT (conversion num->char).
Gerhard
On Tue, 24 Mar 2009 04:55:05 -0700, Gradowsky <marchi.gianluca@LIBERO.IT>
wrote:
>Hi,
>
>try with PUT(DATENOTIF,YYMMDD10.)
>
>bye
>
>
>On 24 Mar, 12:23, ash007 <RamsamyAsh...@gmail.com> wrote:
>> Hello,
>>
>> How can I write a numeric value into AAAA-MM-DD (like 2007-07-31).
>>
>> I have write this but it doesn't work. thanks.
>>
>> DATA TEMP;
>> SET M_IMPORT_COTISATIONS_RECODE;
>> DATENOTIF1 = INPUT(DATENOTIF,YYMMDD10.);
>> RUN;
|