it's a text variable? if so, maybe: format newdate date9.; day=input(substr(olddate,1,2),2.); monthtxt=substr(olddate,4,3); if monthtxt ne '' then month=month(input("01"||substr(monthtxt,1,3)||"2000",date9.)); year=input(substr(olddate,8,4),4.); if day ne . and month ne . and year ne . then newdate=mdy(month,day,year);
... View more