thanks. Your code helped me simplify my last line so it works! I did use the lag function for the priorcode but used retain for combination. This change worked: /*define combination*/ if include=1 then combination = catx(".", combination, codeprior) ;
... View more