Keep variables when they have the same prefix

I want to keep variables when they start from SUM_*.  Could you advise?

You can use the colon modifier to do this.  I have include sample code below.

data sums;

set these2;

keep subgroup

sum_:;

run;

Leave a Reply