If you don't want PROC SQL to print then tell it so by using the NOPRINT option.
proc sql noprint
select nLevels format=32. into :nLevels trimmed from nlev;
select count(distinct &&vname&j.) format=32. into :nLevels trimmed from &lib..&ds.;
quit;
... View more