Dear SAS experts, Is it possible to achieve this result
without tranwrd (without removing 'UN' or other letters)? I need to have a dynamic code. I started to solve on this way, but it didn't work yet. Thanks in advance.
data task_1; input date: $9. ;
day=substr(date,1,2); month=substr(date,3,3); year=substr(date,6,4);
if (day) then day1=day; if (year) then year1=year; month1=put(month,3.); if (month) then month1=month; newdate=cats(year1,month1,day1);
datalines; 27APR2001 30JUL1979 unfeb2005 UNUNK1964 ununkunk ;
... View more