<?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: Macro resolution help again in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-resolution-help-again/m-p/280928#M311372</link>
    <description>&lt;P&gt;OMG! &amp;nbsp;I just wasn't even looking in that direction. &amp;nbsp;Thanks so much!&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jun 2016 21:25:24 GMT</pubDate>
    <dc:creator>buechler66</dc:creator>
    <dc:date>2016-06-28T21:25:24Z</dc:date>
    <item>
      <title>Macro resolution help again</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-resolution-help-again/m-p/280889#M311369</link>
      <description>&lt;P&gt;Still struggling now with a slightly different syntax issue. &amp;nbsp;My program reads in the Rule variable as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rule:&lt;/P&gt;&lt;P&gt;NVL(A.INTER_SCF_EXCL_IND ,'T') &amp;lt;&amp;gt; NVL(B.INTER_SCF_EXCL_IND ,'T')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the %PUT statement is still outputting a trucated version:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;HERE!!! COALESCE(A.INTER_SCF_EXCL_IND ,'T') &amp;lt;&amp;gt; COALESCE(B.INTER_SCF_EXCL_IND ,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm so frustrated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data QueryRules;
   infile datalines;
   input rule $70.;
   datalines;                      
NVL(A.INTER_SCF_EXCL_IND ,'T') &amp;lt;&amp;gt; NVL(B.INTER_SCF_EXCL_IND ,'T')
;

* Recodes to fix inconsistancies in Rule code so it will run on IBMs database and run using SAS instead of plsql ;
data QueryRules;
	set QueryRules;

	* SASs equiv of Oracles NVL function ;
	rule = tranwrd(rule,"NVL(", "COALESCE(");

run;

proc sql;
select trim(rule) into : rule_list separated by "#" from QueryRules;
quit;

%put HERE!!! &amp;amp;rule_list;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 19:52:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-resolution-help-again/m-p/280889#M311369</guid>
      <dc:creator>buechler66</dc:creator>
      <dc:date>2016-06-28T19:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Macro resolution help again</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-resolution-help-again/m-p/280896#M311370</link>
      <description>And with regard to the "#", I've tried it with no quotes, and single and double quotes. Grr....</description>
      <pubDate>Tue, 28 Jun 2016 20:02:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-resolution-help-again/m-p/280896#M311370</guid>
      <dc:creator>buechler66</dc:creator>
      <dc:date>2016-06-28T20:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Macro resolution help again</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-resolution-help-again/m-p/280900#M311371</link>
      <description>&lt;P&gt;The problem is a little different this time ... but it is something you might be able to figure out.&amp;nbsp; Just in case you want to work on it with that clue, I've moved the answer further down on the screen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The length of your variable is $70.&amp;nbsp; That's fine when you start out.&amp;nbsp; But when you replace NVL with COALESCE, you need a longer variable.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 20:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-resolution-help-again/m-p/280900#M311371</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-06-28T20:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Macro resolution help again</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-resolution-help-again/m-p/280928#M311372</link>
      <description>&lt;P&gt;OMG! &amp;nbsp;I just wasn't even looking in that direction. &amp;nbsp;Thanks so much!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 21:25:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-resolution-help-again/m-p/280928#M311372</guid>
      <dc:creator>buechler66</dc:creator>
      <dc:date>2016-06-28T21:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro resolution help again</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-resolution-help-again/m-p/280940#M311373</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding﻿&lt;/a&gt;&amp;nbsp;That's what the spoiler tag is for &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; The little guy hiding his face on the tool bar.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 22:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-resolution-help-again/m-p/280940#M311373</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-28T22:59:46Z</dc:date>
    </item>
  </channel>
</rss>

