<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to get rid of %nrquote in DI Studio in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-nrquote-in-DI-Studio/m-p/58169#M12612</link>
    <description>Hi Thomas&lt;BR /&gt;
&lt;BR /&gt;
Not sure if that will help you:&lt;BR /&gt;
&lt;BR /&gt;
What I encountered in DI was that options (macrovars) were somehow quoted which caused problems when using the macrovar values in comparisons.&lt;BR /&gt;
What helped was (in user written code) to %unquote() them.&lt;BR /&gt;
&lt;BR /&gt;
if myvar=%unquote(&amp;amp;myoptionMvar) then....&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
    <pubDate>Thu, 30 Oct 2008 11:02:56 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2008-10-30T11:02:56Z</dc:date>
    <item>
      <title>How to get rid of %nrquote in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-nrquote-in-DI-Studio/m-p/58168#M12611</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to get rid of %nrquote for an option of a user written tool. &lt;BR /&gt;
&lt;BR /&gt;
I have set up 2 options and for 1 of them %nrquote should not be used in the gererated code. Setting it to Integer as attribute of the option does not help.&lt;BR /&gt;
&lt;BR /&gt;
Background:&lt;BR /&gt;
&lt;BR /&gt;
%let x = %nrquote(7);&lt;BR /&gt;
[...]&lt;BR /&gt;
data &amp;amp;_output.;&lt;BR /&gt;
 [...]&lt;BR /&gt;
  input (fln1-fln&amp;amp;_x) ($);&lt;BR /&gt;
run;&lt;BR /&gt;
[...]&lt;BR /&gt;
&lt;BR /&gt;
Attaching &amp;amp;_x nrquoted does not work, with %let x = 7 it works.&lt;BR /&gt;
&lt;BR /&gt;
Thanks and regards,&lt;BR /&gt;
Thomas</description>
      <pubDate>Thu, 30 Oct 2008 10:57:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-nrquote-in-DI-Studio/m-p/58168#M12611</guid>
      <dc:creator>ThomasH</dc:creator>
      <dc:date>2008-10-30T10:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rid of %nrquote in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-nrquote-in-DI-Studio/m-p/58169#M12612</link>
      <description>Hi Thomas&lt;BR /&gt;
&lt;BR /&gt;
Not sure if that will help you:&lt;BR /&gt;
&lt;BR /&gt;
What I encountered in DI was that options (macrovars) were somehow quoted which caused problems when using the macrovar values in comparisons.&lt;BR /&gt;
What helped was (in user written code) to %unquote() them.&lt;BR /&gt;
&lt;BR /&gt;
if myvar=%unquote(&amp;amp;myoptionMvar) then....&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Thu, 30 Oct 2008 11:02:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-nrquote-in-DI-Studio/m-p/58169#M12612</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2008-10-30T11:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rid of %nrquote in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-nrquote-in-DI-Studio/m-p/58170#M12613</link>
      <description>Patrick's tip has helped me as well several times, and it will help in this situation as well, except for...just of curiosity, could it really work with x = 7? x and _x are totally different macro variables...?! Have you defined _x somewhere else in your code perhaps or is it a typo?&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Linus</description>
      <pubDate>Thu, 30 Oct 2008 11:45:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-nrquote-in-DI-Studio/m-p/58170#M12613</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-10-30T11:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rid of %nrquote in DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-nrquote-in-DI-Studio/m-p/58171#M12614</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
that was a typo indeed, but %unquote helped out anyway!&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot,&lt;BR /&gt;
Thomas</description>
      <pubDate>Thu, 30 Oct 2008 13:00:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-rid-of-nrquote-in-DI-Studio/m-p/58171#M12614</guid>
      <dc:creator>ThomasH</dc:creator>
      <dc:date>2008-10-30T13:00:47Z</dc:date>
    </item>
  </channel>
</rss>

