<?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 SAS macro resolution in Stored Process behaving inconsistently based on prompt values selected in Developers</title>
    <link>https://communities.sas.com/t5/Developers/SAS-macro-resolution-in-Stored-Process-behaving-inconsistently/m-p/416855#M5579</link>
    <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;I'll admit that I'm a little rusty on my use of the macro facility, so it's entirely possible that I'm missing something fundamental here, but here's the scenario - I'm trying to generate a dynamic where clause in a proc sql statement based on the values selected from a multiple values prompt in a stored process, including the "all possible values" option. In this particular case they are values based on a geographical hierarchy. &lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;If the user selects "all possible values" it moves on. If not, depending on if one or more values is selected, it adds&amp;nbsp;an "and" phrase to the where clause with the appropriate in operator statement. Here's the syntax I went with at first:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%if&lt;/FONT&gt;&amp;nbsp; &lt;FONT color="#800080"&gt;&amp;amp;designationregion.&lt;/FONT&gt; = _ALL_VALUES_ &lt;FONT color="#0000ff"&gt;%then&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;%do&lt;/FONT&gt;;&lt;FONT color="#0000ff"&gt;%end&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%else&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;%do&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;and d.designationregion in (&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%if&lt;/FONT&gt; &amp;amp;&lt;FONT color="#008080"&gt;designationregion_count.&lt;/FONT&gt; = &lt;STRONG&gt;&lt;FONT color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff"&gt;%then&lt;/FONT&gt; &lt;FONT color="#800080"&gt;"&amp;amp;designationregion."&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%else&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;%do&lt;/FONT&gt; i=&lt;STRONG&gt;&lt;FONT color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff"&gt;%to&lt;/FONT&gt; &amp;amp;&lt;FONT color="#008080"&gt;designationregion_count.&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="arial,helvetica,sans-serif" size="3"&gt;"&amp;amp;&amp;amp;designationregion&amp;amp;i."&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%end&lt;/FONT&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%end&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Everything was working splendidly until I happened to choose a value for the prompt with the word "and" in it. For example&lt;BR /&gt;&lt;BR /&gt;Mexico and N Central America.&lt;BR /&gt;&lt;BR /&gt;If this is either the only value or the first in a series of values selected the SP errors out with this:&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required. The condition was: &amp;amp;designationdivision. = _ALL_VALUES_&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;ERROR: The macro SPTEST will stop executing.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;So if values selected are like so:&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Mexico and N Central America&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Brazil&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;it gets fussy. But if values are like so:&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Brazil&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Mexico and N Central America&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;everything is lovely.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;This appears to happen because&amp;nbsp;of the word "and" interfering with its thinking. I thought I needed quotes around the macro variable being resolved so I tried this syntax which adds quotes around the first occurrence of the &amp;amp;designationregion. macro variable.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%if&lt;/FONT&gt;&amp;nbsp; "&lt;FONT color="#800080"&gt;&amp;amp;designationregion."&lt;/FONT&gt; = _ALL_VALUES_ &lt;FONT color="#0000ff"&gt;%then&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;%do&lt;/FONT&gt;;&lt;FONT color="#0000ff"&gt;%end&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%else&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;%do&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;and d.designationregion in (&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%if&lt;/FONT&gt; &amp;amp;&lt;FONT color="#008080"&gt;designationregion_count.&lt;/FONT&gt; = &lt;STRONG&gt;&lt;FONT color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff"&gt;%then&lt;/FONT&gt; &lt;FONT color="#800080"&gt;"&amp;amp;designationregion."&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%else&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;%do&lt;/FONT&gt; i=&lt;STRONG&gt;&lt;FONT color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff"&gt;%to&lt;/FONT&gt; &amp;amp;&lt;FONT color="#008080"&gt;designationregion_count.&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="arial,helvetica,sans-serif" size="3"&gt;"&amp;amp;&amp;amp;designationregion&amp;amp;i."&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%end&lt;/FONT&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="arial,helvetica,sans-serif" size="3"&gt;%end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;This does in fact solve the problem and the error no longer occurs, but now, when I select "all possible values" from the prompt, the query returns nothing and I want instead for it to return everything.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;So I'm clearly missing something in how to properly get it to ignore the and AND properly compare against the default _ALL_VALUES_ value. &lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;We're running all of this in SAS 9.4 on Linux but my Spidey sense tells me that it's not versioning, but syntax that is at the heart of my problem.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Arial" size="3"&gt;So I ask you, wise and powerful onlookers, where am I going wrong?&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Chris&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2017 20:33:53 GMT</pubDate>
    <dc:creator>chawkins</dc:creator>
    <dc:date>2017-11-28T20:33:53Z</dc:date>
    <item>
      <title>SAS macro resolution in Stored Process behaving inconsistently based on prompt values selected</title>
      <link>https://communities.sas.com/t5/Developers/SAS-macro-resolution-in-Stored-Process-behaving-inconsistently/m-p/416855#M5579</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;I'll admit that I'm a little rusty on my use of the macro facility, so it's entirely possible that I'm missing something fundamental here, but here's the scenario - I'm trying to generate a dynamic where clause in a proc sql statement based on the values selected from a multiple values prompt in a stored process, including the "all possible values" option. In this particular case they are values based on a geographical hierarchy. &lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;If the user selects "all possible values" it moves on. If not, depending on if one or more values is selected, it adds&amp;nbsp;an "and" phrase to the where clause with the appropriate in operator statement. Here's the syntax I went with at first:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%if&lt;/FONT&gt;&amp;nbsp; &lt;FONT color="#800080"&gt;&amp;amp;designationregion.&lt;/FONT&gt; = _ALL_VALUES_ &lt;FONT color="#0000ff"&gt;%then&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;%do&lt;/FONT&gt;;&lt;FONT color="#0000ff"&gt;%end&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%else&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;%do&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;and d.designationregion in (&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%if&lt;/FONT&gt; &amp;amp;&lt;FONT color="#008080"&gt;designationregion_count.&lt;/FONT&gt; = &lt;STRONG&gt;&lt;FONT color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff"&gt;%then&lt;/FONT&gt; &lt;FONT color="#800080"&gt;"&amp;amp;designationregion."&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%else&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;%do&lt;/FONT&gt; i=&lt;STRONG&gt;&lt;FONT color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff"&gt;%to&lt;/FONT&gt; &amp;amp;&lt;FONT color="#008080"&gt;designationregion_count.&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="arial,helvetica,sans-serif" size="3"&gt;"&amp;amp;&amp;amp;designationregion&amp;amp;i."&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%end&lt;/FONT&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%end&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Everything was working splendidly until I happened to choose a value for the prompt with the word "and" in it. For example&lt;BR /&gt;&lt;BR /&gt;Mexico and N Central America.&lt;BR /&gt;&lt;BR /&gt;If this is either the only value or the first in a series of values selected the SP errors out with this:&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required. The condition was: &amp;amp;designationdivision. = _ALL_VALUES_&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;ERROR: The macro SPTEST will stop executing.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;So if values selected are like so:&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Mexico and N Central America&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Brazil&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;it gets fussy. But if values are like so:&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Brazil&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Mexico and N Central America&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;everything is lovely.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;This appears to happen because&amp;nbsp;of the word "and" interfering with its thinking. I thought I needed quotes around the macro variable being resolved so I tried this syntax which adds quotes around the first occurrence of the &amp;amp;designationregion. macro variable.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%if&lt;/FONT&gt;&amp;nbsp; "&lt;FONT color="#800080"&gt;&amp;amp;designationregion."&lt;/FONT&gt; = _ALL_VALUES_ &lt;FONT color="#0000ff"&gt;%then&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;%do&lt;/FONT&gt;;&lt;FONT color="#0000ff"&gt;%end&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%else&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;%do&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;and d.designationregion in (&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%if&lt;/FONT&gt; &amp;amp;&lt;FONT color="#008080"&gt;designationregion_count.&lt;/FONT&gt; = &lt;STRONG&gt;&lt;FONT color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff"&gt;%then&lt;/FONT&gt; &lt;FONT color="#800080"&gt;"&amp;amp;designationregion."&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%else&lt;/FONT&gt; &lt;FONT color="#0000ff"&gt;%do&lt;/FONT&gt; i=&lt;STRONG&gt;&lt;FONT color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff"&gt;%to&lt;/FONT&gt; &amp;amp;&lt;FONT color="#008080"&gt;designationregion_count.&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="arial,helvetica,sans-serif" size="3"&gt;"&amp;amp;&amp;amp;designationregion&amp;amp;i."&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;FONT color="#0000ff"&gt;%end&lt;/FONT&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="arial,helvetica,sans-serif" size="3"&gt;%end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;This does in fact solve the problem and the error no longer occurs, but now, when I select "all possible values" from the prompt, the query returns nothing and I want instead for it to return everything.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;So I'm clearly missing something in how to properly get it to ignore the and AND properly compare against the default _ALL_VALUES_ value. &lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;We're running all of this in SAS 9.4 on Linux but my Spidey sense tells me that it's not versioning, but syntax that is at the heart of my problem.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Arial" size="3"&gt;So I ask you, wise and powerful onlookers, where am I going wrong?&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Chris&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 20:33:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-macro-resolution-in-Stored-Process-behaving-inconsistently/m-p/416855#M5579</guid>
      <dc:creator>chawkins</dc:creator>
      <dc:date>2017-11-28T20:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro resolution in Stored Process behaving inconsistently based on prompt values selected</title>
      <link>https://communities.sas.com/t5/Developers/SAS-macro-resolution-in-Stored-Process-behaving-inconsistently/m-p/416877#M5580</link>
      <description>&lt;P&gt;You got very close to a solution by adding the double quotes.&amp;nbsp; Try adding double quotes to the other side of the comparison as well and see if you find the match that you expect:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;= "_ALL_VALUES_"&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 20:50:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-macro-resolution-in-Stored-Process-behaving-inconsistently/m-p/416877#M5580</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-11-28T20:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro resolution in Stored Process behaving inconsistently based on prompt values selected</title>
      <link>https://communities.sas.com/t5/Developers/SAS-macro-resolution-in-Stored-Process-behaving-inconsistently/m-p/416881#M5581</link>
      <description>&lt;P&gt;For lack of a more elegant response....Aaaaaaaaaaaaaaaaaaaaaaaaaaargh.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;, thanks for the quick review. I was all set to tell you that I had already tried that without improvement, but I think I must have missed one (there are a&amp;nbsp;boatload with parallel syntax), because now all the robots are singing in perfect harmony.&lt;BR /&gt;&lt;BR /&gt;On to more troubling mysteries I suppose.&lt;BR /&gt;&lt;BR /&gt;Thanks again!&lt;BR /&gt;&lt;BR /&gt;Chris&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 21:01:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/SAS-macro-resolution-in-Stored-Process-behaving-inconsistently/m-p/416881#M5581</guid>
      <dc:creator>chawkins</dc:creator>
      <dc:date>2017-11-28T21:01:12Z</dc:date>
    </item>
  </channel>
</rss>

