Date: Thu, 21 Mar 2002 12:32:17 -0500
Reply-To: Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Subject: Re: actual date (sysdate?)
Content-Type: text/plain; charset=ISO-8859-1
On Thu, 21 Mar 2002 18:05:36 +0100, Jörg Zimmermann <needful@WEB.DE> wrote:
>Hi,
>
>how can I get the actual date (the date, I start a sas program)
>in german format, like "21.03.2002"?
>I want to save it as character in a sas-table.
>
>Thanks in advance.
>
>Joerg
data a;
start_datum=translate(put("&sysdate"d,ddmmyy10.),".","/");
akt_datum=translate(put(today(),ddmmyy10.),".","/");
run;
start_date and akt_date might differ a bit, because akt_date give you the
date at runtime of a SAS session which might be started yesterday or a week
ago.
|