Hi Chris, Your reply was very helpful. Thanks. To avoid writing several array statements (in my case up to 13) I used a multidimensional array. %let min = 11; %let max = 13; array arr{2,20&min:20&max} net_qu&min-net_qu&max sale_nb&min-sale; arr{1,uwyear} = net_qu; arr{2,uwyear} = sale_nb; So next year I just have to change my min and max values. 🙂 But there are still some variables that seems not that easy to handle. Here the year is in the middle of the variable. e.g. sale_11_rn . So I can't use a numbered range list. The people worked on this report before loved it to hard code everything. Maybe there is also a nice trick to avoid hard coding all the variables without change the names? Christoph
... View more