I do think you can not prevent the warnings when using the %nrbquote function.
From the Online Doc on the %nrbquote function I read the following:
If the argument of the %NRBQUOTE function contains an unresolvable macro variable reference or macro invocation, the macro processor issues a warning message before it masks the ampersand or percent sign (assuming the SERROR or MERROR system option, described in is in effect). To suppress the message for unresolved macro variables, use the %SUPERQ function (discussed later in this section) instead.
So you may want to try the %superq function of which in the documentation is indicated:
Because %SUPERQ does not attempt any resolution of its argument, the macro processor does not issue any warning messages that a macro variable reference or a macro invocation has not been resolved. Therefore, even when the %NRBQUOTE function enables the program to work correctly, you can use the %SUPERQ function to eliminate unwanted warning messages from the SAS log.
I hope this helps.
Message was edited by: eomred