Datetime in sas when uploading from access
Datetime in sas when uploading from access
(OP)
I created a file in access with a date/time in access 2007. I changed the input mask and format to read short date. When I upload to sas it still comes in as a full date/time field. Is there a way to either force sas to accept the date as a short date or is there a script I need in sas to change it from a date time to a short date (ie 04MAY2002:00:00:00 should be 05/04/2002)
RE: Datetime in sas when uploading from access
RE: Datetime in sas when uploading from access
set lib.MyTable;
Billed_Dt = datepart(BILLED_DATE);
format Bill_Dt mmddyy10.;
run;
Now I get what appears to be a sas system date or something
(ie 04MAY2002:00:00:00 becomes 15464, 23APR2002:00:00:00 becomes 15453 ) I attempted to address using a format statement but no luck
RE: Datetime in sas when uploading from access
It's the way sas reads in the pdv
RE: Datetime in sas when uploading from access