07-19-2016 02:30 AM
I have a variable with date contains UN and UNK string. How to read it. Please help
id date1 date2
2 . UN-UNK-2014
07-19-2016 11:59 AM
Are you attempting to get an actual SAS date valued variable or a character variable?
If you have SAS date values then the format applied to the variable would make all of the values display in the same form an incomplete values such as 2014 would internally be 1/1/2014 and 2010-9 would be 9/1/2010.
If you are going to deal with calculations such as intervals between dates or create graphs with dates you likely want SAS date values but the default appearances are not going to be as you show.