|
Basile,
Try:
data have;
input text_date $10.;
cards;
14/10/2005
25/12/2008
;
data want;
set have;
format want_date ddmmyy10.;
want_date=input(text_date,ddmmyy10.);
run;
HTH,
Art
-------
On Thu, 25 Dec 2008 03:42:26 -0800, Basile Chaix <chaix@U444.JUSSIEU.FR>
wrote:
>Dear colleagues,
>I have a text variable in the form of "DD/MM/YYYY", but this is only a
>text variable.
>
>I would like to have it as a real date variable. Could someone
>indicate what is the code for this translation?
>
>After I would like to apply a format to it so that the SAS date still
>appear in this format "DD/MM/YYYY". What would be the code to apply a
>format to this date variable?
>
>Kind regards,
>
>BC
|