%nrbquote doesn't work on SQL or ordinary SAS variables, it only works on macro variables.
You want to remove %nrbquote from PROC SQL, and then use
%put %superq(n1) &n2 %nrbquote(&n3) %quote(&n4);
-- Paige Miller
2025 SAS Hackathon: There is still time!
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!