Hello I am trying to add a period for a name column only when the name shows up as one letter. data have; middle_name; datalines M Tim Bob I Tina I tried to do this: data want; set have; if length(strip(middle_name)) = 1 then middle_name = catx('.', middle_name, 1, 1), substr(middle_nm,1)); run; but the middle initials show as M.M and I.I Any help would be greatly appreciated! Definitely am a beginner.
... View more