<?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 Apsotrophy with ne in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Apsotrophy-with-ne/m-p/464033#M70495</link>
    <description>&lt;P&gt;When department has the value of Dean's Office.&amp;nbsp; The below errors&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%if &amp;amp;department ne %then %do;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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;department ne &lt;BR /&gt;ERROR: The macro DEPARTMENTWHERE will stop executing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What can I use to allow the if statement to work?&lt;/P&gt;</description>
    <pubDate>Tue, 22 May 2018 13:23:40 GMT</pubDate>
    <dc:creator>DavidPhillips2</dc:creator>
    <dc:date>2018-05-22T13:23:40Z</dc:date>
    <item>
      <title>Apsotrophy with ne</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Apsotrophy-with-ne/m-p/464033#M70495</link>
      <description>&lt;P&gt;When department has the value of Dean's Office.&amp;nbsp; The below errors&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%if &amp;amp;department ne %then %do;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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;department ne &lt;BR /&gt;ERROR: The macro DEPARTMENTWHERE will stop executing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What can I use to allow the if statement to work?&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 13:23:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Apsotrophy-with-ne/m-p/464033#M70495</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2018-05-22T13:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Apsotrophy with ne</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Apsotrophy-with-ne/m-p/464037#M70496</link>
      <description>&lt;P&gt;%if %bquote(&amp;amp;department) ne %then %do;&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 13:36:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Apsotrophy-with-ne/m-p/464037#M70496</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2018-05-22T13:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Apsotrophy with ne</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Apsotrophy-with-ne/m-p/464039#M70497</link>
      <description>&lt;P&gt;Can you not just put quotes around it?&lt;/P&gt;
&lt;PRE&gt;%if "&amp;amp;department." ne "" %then %do;&lt;/PRE&gt;
&lt;P&gt;Another good reason not to use macro for data processing?&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 13:37:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Apsotrophy-with-ne/m-p/464039#M70497</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-22T13:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Apsotrophy with ne</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Apsotrophy-with-ne/m-p/464048#M70499</link>
      <description>&lt;P&gt;&lt;SPAN&gt;%if %length(&amp;amp;department)&amp;nbsp; %then %do;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 13:42:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Apsotrophy-with-ne/m-p/464048#M70499</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-05-22T13:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Apsotrophy with ne</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Apsotrophy-with-ne/m-p/464049#M70500</link>
      <description>&lt;P&gt;What is the difference between '' and "" here?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think a the use of most functions around the parameter work work in this case.&amp;nbsp; I need the macro to print out a dynamic report.&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 13:50:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Apsotrophy-with-ne/m-p/464049#M70500</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2018-05-22T13:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Apsotrophy with ne</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Apsotrophy-with-ne/m-p/464051#M70501</link>
      <description>&lt;P&gt;&amp;nbsp;Has to be double quotes for the macro variable to resolve.&amp;nbsp; Also, if you used single quotes it would be unbalanced.&amp;nbsp; Just think about what is resolved:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%if "&lt;SPAN&gt;Dean's Office&lt;/SPAN&gt;" ne "" %then %do;&lt;/PRE&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;I need the macro to print out a dynamic report." - the point is?&amp;nbsp; Many simple methods, categorise the data using numerics rather than text, use by group processing, combine categorisation and by group processing, generate code from datastep.&amp;nbsp; Reason I ask is that as soon as you fix the code to handle ', you can almost guarentee that the next run will include a ", or some other strange character.&amp;nbsp; Datasets can handle this fine, macro is really not good at data processing.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 13:58:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Apsotrophy-with-ne/m-p/464051#M70501</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-22T13:58:09Z</dc:date>
    </item>
  </channel>
</rss>

