So would it be fair to say you want to split the comment by punctuation? Your could do something like the following: data want; length comment_1 - comment_7 $ 100; set have; comment_1 = scan(comment,1,".","RP"); comment_2 = scan(comment,2,".","RP"); comment_3 = scan(comment,3,".","RP"); comment_4 = scan(comment,4,".","RP"); comment_5 = scan(comment,5,".","RP"); comment_6 = scan(comment,6,".","RP"); comment_7 = scan(comment,7,".","RP"); run; Code could be condensed with an arrary and do loop but I left it alone as to not confuse matters. The R and P are optional modifiers that trim leading and trailing spaces from the result (R) and use all punctuation as delimiters (P). EJ
... View more