Hi- I'm wondering if a macro can be written that concatenates comments into one comment field. For example, the code below concatenates 8 comment fields. However, the maximum number of comments can change each time it is run, so I want it to be flexible so that if the maximum number of comments changes from 8 to 10, it will concatenate all 10 comment fields. Any help would be greatly appreciated!
data dat2 (keep=compyr fnlcomment);
fnlcomment=cmt1||' '||cmt2||' '||cmt3||' '||cmt4||' '||cmt5||' '||cmt6||' '||cmt7||' '||cmt8;