Escaping brackets in SAS macro language
Published on 14th November 2007 Estimated Reading Time: 1 minuteRendering opening and closing brackets as pieces in SAS macro language programming caused me a bit of grief until I got it sorted a few months back. All the usual suspects for macro quoting (or escaping in other computer languages) let me down: even the likes of %SUPERQ
or %NRBQUOTE
didn't do the trick. The honours were left to %NRQUOTE(%()
, which performed what was required very respectably indeed. The second %
escapes the bracket for %NRQUOTE
to do the rest.