|
I am not sure if it is the best way to handle but it works. As far as I
know, there is no direct way to handle this type of date in SAS:
data x ;
x = '5 February 2004' ;
sasdate = input(put(input(scan(x,1),2.),z2.) || substr(scan(x,2),1,3) ||
scan(x,3),date9.) ;
run ;
"Doug" <queanbeyan@hotmail.com> wrote in message
news:d72455ac.0402041902.614e2b1d@posting.google.com...
> Hi,
>
> I have a dataset that has a character variable called 'Created' that
> has a date in the following format = 5 February 2004.
>
> Could someone please tell me how I can change this to a sas date? I
> have scanned and concatenated, but there must be an easier way - like
> an informat?
>
> Doug
|