Since there are only a finite number of valid ICD-9 codes it might be easier to make a table with all of the valid codes and also add in every misspelling you have found and determined how to map. For example you might do it by making a format (or even an informat) and use that...
FORMATF1 $CHAR10.F2 BEST5.UserName $CHAR16.Domain $CHAR6.F5 $CHAR12.F6 BEST7.RunMonth $CHAR12.RunDate $CHAR1.RunTime $CHAR40.RunName $CHAR40. ;INFORMATF1 $CHAR10.F2 BEST5.UserName $CHAR16.Domain $CHAR6.F5 $CHAR12.F6 BEST7.RunMonth $CHAR12.RunDate $CHAR2.RunTime $CHAR40.Run...