BookmarkSubscribeRSS Feed
Muyu
Calcite | Level 5

Hi there,

 

I am confused about "%NRBQUOTE", I do not know what is this even after I searched it in sas library.

 

Can someone please explain it in plain and brief language to me?

 

I want to know what does it mean and how may I use it.

 

Thanks

 

4 REPLIES 4
Muyu
Calcite | Level 5

I mean I just cannot understand what it says in this link...

Sven111
Pyrite | Level 9

Do you understand what %BQUOTE does?  If so %NRBQUOTE does basically the same thing but also masks the characters & and % as well as the ones masked by %BQUOTE.  To be honest, quoting is often a confusing mess to me, I've especially had problems with quoting when I'm working with SAS and Oracle together since Oracle has a completely different quoting facility, and they don't mesh well.  I've often found trial and error to be the best way to get my code to work right in situations like this.

 

From the documentation:

%NRBQUOTE is most useful when the resolved value of an argument might contain

  • strings that look like macro variable references but are not, so the macro processor should not attempt to resolve them when it next encounters them.
  • macro invocations that you do not want the macro processor to attempt to resolve when it next encounters them.
     
     
Reeza
Super User

Search the term on LexJansen.com for papers written on the topic.

hackathon24-white-horiz.png

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!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 2063 views
  • 0 likes
  • 4 in conversation