In MySQL, you can use the group_concat function to concatenate across rows with a by group. I think this would be a valuable addition to the functions available in proc sql.
proc sql;
create table EXAMPLE as
select ID, STRING, group_concat(STRING) as ALL_STRINGS
from DATA_SET
group by ID;
quit;