I am very close to a final solution:. I think I can take care of it with a lot of labels: proc sql; create table scoresL as select CLAIMNO, COMMENTTEXT, Text4Matching, NumberForLabels from SRS_Comments500 inner join TextFromExcel on indexw(COMMENTTEXT, Text4Matching)>0 order by CLAIMNO, COMMENTTEXT, Text4Matching; quit; proc print data=scoresL noobs; run; proc transpose data=scoresL out=FlaggedCommentsT(drop=_:) prefix=flag_; by CLAIMNO; id NumberForLabels; run; proc print data=FlaggedCommentsT noobs; run; I just need to create a routine to label each of the numbered fields. But, I am getting lots of errors involved with this: The ID value, "flag_6" occurs twice in the same BY group. I cannot figure what is happening here. Any suggestions?
... View more