07-18-2016 10:37 PM
I imported a file into SAS and some columns were converted into number format while others into text? why is that? how do i ensure that columns are imported the way I wanted? is there a way?
Im using PROC SQL..
one of my columns that is in a TEXT format is a date 15JUL2016:00:00:00
I want to change it to a date9 format but its not letting me because its in text so I tried to do input(act_date,12.0) but when i opened the new table that column was ALL blank so the input did not work?
How do i convert it to a number so i can do the date9 after? Thank you very much!
07-18-2016 11:15 PM
Your INPUT requires the correct informat which would be a date time format, not 12.
I'm assuming you used proc import to import your data? If so, it guesses what type/format should be, obviously not correctly always.
If you have a text file you can customize your import using a data step so it's read in correctly. Unfortunately Excel doesn't play well with others and there isn't an easy way to specify types when importing from an Excel file. You can look into DBSASTYPE if you'd like to explore that route.
07-19-2016 10:55 AM
right now i just have
create table test1.discovery
i tried this before but didnt work...
Need further help from the community? Please ask a new question.