<?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: catx with sysfunc in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/catx-with-sysfunc/m-p/83549#M9031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Tk'sss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2012 19:34:38 GMT</pubDate>
    <dc:creator>Abud</dc:creator>
    <dc:date>2012-06-14T19:34:38Z</dc:date>
    <item>
      <title>catx with sysfunc</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/catx-with-sysfunc/m-p/83547#M9029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everbody!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow my doubt:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let CPF = 15534556205;&lt;/P&gt;&lt;P&gt;%let Partic = 82;&lt;/P&gt;&lt;P&gt;%let condicao1 =&amp;nbsp; ID = &amp;amp;CPF;&lt;/P&gt;&lt;P&gt;%let condicao2 =&amp;nbsp; Partic = &amp;amp;Partic;&lt;/P&gt;&lt;P&gt;%put &amp;amp;condicao1;&lt;/P&gt;&lt;P&gt;%put &amp;amp;condicao2;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;%let Todas = %sysfunc(catx(and ,&amp;amp;condicao1.,&amp;amp;condicao2.));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;%put &amp;amp;Todas;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #000000;"&gt;I wish I had the result&lt;SPAN style="color: #808000;"&gt;&lt;SPAN style="color: #ff0000;"&gt; "ID = 15534556205 and Partic 82.",&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;but the variable macro &amp;amp;Todas return "0and0", I can understand why this happen.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tk's in advanced. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 18:31:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/catx-with-sysfunc/m-p/83547#M9029</guid>
      <dc:creator>Abud</dc:creator>
      <dc:date>2012-06-14T18:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: catx with sysfunc</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/catx-with-sysfunc/m-p/83548#M9030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Evidently, when CATX sees the equal signs in the second and third parameters, it is treating them as logical comparisons and evaluating them.&amp;nbsp; Since "ID" is not equal to "155345562505", the comparison is false and the logical result is 0.&amp;nbsp; If you need convincing, try replacing the equal signs with the word "is":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let condicao1 = ID is &amp;amp;CPF;&lt;/P&gt;&lt;P&gt;%let condicao2 = Partic is &amp;amp;Partic;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, the rest should work as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The simplest remedy is to get rid of CATX entirely.&amp;nbsp; It would be easy enough to code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let Todas = &amp;amp;condacao1. and &amp;amp;condacao2.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 19:17:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/catx-with-sysfunc/m-p/83548#M9030</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-06-14T19:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: catx with sysfunc</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/catx-with-sysfunc/m-p/83549#M9031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Tk'sss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 19:34:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/catx-with-sysfunc/m-p/83549#M9031</guid>
      <dc:creator>Abud</dc:creator>
      <dc:date>2012-06-14T19:34:38Z</dc:date>
    </item>
  </channel>
</rss>

