Hello all, Not sure why but I am unable to automate this portion: %macro title(); %let allCodes = %sysfunc(CATX(",", &Codes1, &Codes2, &Codes3, &Codes4 )); %put &allCodes; %mend; %title(); I am doing this below for automating the above %let allCodes statement - but seeing errors: %macro attempt1(); %do i = 1 %TO 3; %let allCodes = %sysfunc(CATX(",", &Codes&i. %end; &Codes4 )); %put &allCodes; %mend; attempt1(); Just trying to automate the macro title() using DO loop but it gives errors...any ideas would be highly appreciated. Regards, Tina
... View more