@hein68 wrote:
I'm trying to import an Excel spreadsheet into SAS. I have data like this:
ID Date Time VM
44 8/28/2015 0:00:00 1691.4
44 8/28/2015 0:01:00 3001.51
I need the data in SAS to be:
ID: numeric
Date: Character $30
Time: Character $30
VM: numeric
When I import in the data, the Date and Time variables have all missing values, and I don't know why.
Show the exact code you ran.
Or describe any wizards you used.
My first guess is that the value in excel for date/time is a single cell, is numeric and the approach you used didn't match the data.
Why do you want DATE to be 30 characters long if the longest value is likely to be 10?
You may have to start by using Excel and do a file save as to CSV format to read/import as there can be more control involved.