Sorry. The wanted dataset should look like.. Data test; infile datalines DSD; input ID First_name_with_middle $ Last_name $ First_name_without_middle $ ; datalines; 1, Michael R., Boyce, Michael 2, James G., Brocksmith, James 3, Gerald F., Fitzgerald, Gerald 4, Norman R., Bobins, Norman 5, Peter, Pace, Peter 6, Norman A., Ryan, Norman 7, Anne Newman, Foreman, Anne ; run; But, when I ran the code above, First_name_with_middle column shows that some observations do not have a dot after middle name abbreviation. I do not know why... but I need the dot after the middle name abbreviation if there is a middle name abbreviation.
... View more