Worked perfectly! I just added two more lines into your concept macro, and would like to share it: In the part: if last.INDXNAME then do; indx=catx(' ',indx,names,')'); end; I've added: if last.INDXNAME then do; indx=catx(' ',indx,names,')'); if unique = 'yes' then indx=catx(' ',indx,'/UNIQUE'); if nomiss = 'yes' then indx=catx(' ',indx,'/NOMISS'); end; So it's also possible to keep the unique and nomiss. Thanks again for the help and the patience in writing the code!
... View more