Hello, My code looks similar to this: %Macro CFT(PGM,ID); PROC SQL; CREATE TABLE work.tempRV AS SELECT DISTINCT RV from work.SPECS a WHERE a.Revision = &ID.; PROC SQL; SELECT cats(count(*)) into :MAXRV FROM work.tempRV; proc sql; select DISTINCT RV into :RV1-:RV&MAXRV. from work.tempRV; quit; %Mend; When the macro is called, the first PROC SQL runs as expected but the second and third do not execute. Any help would be greatly appreciated. Thanks,
... View more