<?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: KCOMPARE function: using modifiers causes an error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/KCOMPARE-function-using-modifiers-causes-an-error/m-p/784461#M250342</link>
    <description>&lt;P&gt;It looks like the documentation is inconsistent.&lt;/P&gt;
&lt;P&gt;Click on the feedback button on the&amp;nbsp;documentation page, the team are really good at replying.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Dec 2021 04:26:49 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2021-12-07T04:26:49Z</dc:date>
    <item>
      <title>KCOMPARE function: using modifiers causes an error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/KCOMPARE-function-using-modifiers-causes-an-error/m-p/784292#M250258</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;KCOMPARE function syntax from SAS documentation:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="xisDoc-keyword"&gt;KCOMPARE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/nlsref/p0kyi9xaa211ecn1tm6zgohwsp3k.htm#p0zl21ayyfg17zn1jaa0d5741w36" target="_blank"&gt;source&lt;/A&gt;&lt;/EM&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN class="xisDoc-optional"&gt;&amp;lt;&lt;EM class="xisDoc-userSuppliedValue"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/nlsref/p0kyi9xaa211ecn1tm6zgohwsp3k.htm#n18kap9z8jtsx1n12g2x6idm7ykf" target="_blank"&gt;pos&lt;/A&gt;&lt;/EM&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/nlsref/p0kyi9xaa211ecn1tm6zgohwsp3k.htm#p1dfdhswc238tjn18t868angdarq" target="_blank"&gt;count&lt;/A&gt;&lt;/EM&gt;, &amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/nlsref/p0kyi9xaa211ecn1tm6zgohwsp3k.htm#n08cn781gcb0pnn19ngkcu4a8wt9" target="_blank"&gt;findstr&lt;/A&gt;&lt;/EM&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN class="xisDoc-optional"&gt;&amp;lt;&lt;EM class="xisDoc-userSuppliedValue"&gt;modifiers&lt;/EM&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Why this code:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;data test;&lt;BR /&gt;b=kcompare("qwerty",1,6,"QWERTY","i");&lt;BR /&gt;run;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;causes this error:&amp;nbsp;&lt;/SPAN&gt;ERROR 72-185: The KCOMPARE function call has too many arguments?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 12:09:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/KCOMPARE-function-using-modifiers-causes-an-error/m-p/784292#M250258</guid>
      <dc:creator>pavelr</dc:creator>
      <dc:date>2021-12-06T12:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: KCOMPARE function: using modifiers causes an error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/KCOMPARE-function-using-modifiers-causes-an-error/m-p/784299#M250264</link>
      <description>It is just like COMPARE() I guess.&lt;BR /&gt;&lt;BR /&gt;data test;&lt;BR /&gt;b=kcompare("qwerty","QWERTY","i");&lt;BR /&gt;run;</description>
      <pubDate>Mon, 06 Dec 2021 12:47:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/KCOMPARE-function-using-modifiers-causes-an-error/m-p/784299#M250264</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-12-06T12:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: KCOMPARE function: using modifiers causes an error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/KCOMPARE-function-using-modifiers-causes-an-error/m-p/784305#M250269</link>
      <description>&lt;P&gt;I recommend you open a&amp;nbsp;&lt;A href="https://support.sas.com/en/technical-support/submit-a-support-request.html" target="_blank"&gt;TS track&lt;/A&gt; for this question.&lt;BR /&gt;&lt;BR /&gt;Please include the following:&lt;/P&gt;
&lt;P&gt;- Title "KCOMPARE returns error "The KCOMPARE function call has too many arguments" when 5 arguments are supplied&lt;BR /&gt;- SAS Version you are running (the following code will report SAS version information)&lt;BR /&gt;%put &amp;amp;sysvlong ;&lt;BR /&gt;%put &amp;amp;sysscpl ;&lt;BR /&gt;%put &amp;amp;syssite ;&lt;BR /&gt;- &lt;A href="http://support.sas.com/kb/35968" target="_blank"&gt;Registry Report&lt;/A&gt; (*.txt files) for each server, please clearly name the report files to reflect the server it was executed on.&lt;/P&gt;
&lt;P&gt;- The code (as you have it here)&lt;/P&gt;
&lt;P&gt;- The SAS Log&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 13:21:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/KCOMPARE-function-using-modifiers-causes-an-error/m-p/784305#M250269</guid>
      <dc:creator>AMSAS</dc:creator>
      <dc:date>2021-12-06T13:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: KCOMPARE function: using modifiers causes an error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/KCOMPARE-function-using-modifiers-causes-an-error/m-p/784347#M250298</link>
      <description>&lt;P&gt;Are you running regular SAS code? Or are you using CAS/Viya?&lt;/P&gt;
&lt;P&gt;Are you using DBCS?&lt;/P&gt;
&lt;P&gt;Also &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p0iaa25pnhl59ln1v4yrympngpic.htm" target="_self"&gt;this page&lt;/A&gt; seems to indicate the MODIFIER optional argument is not supported.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;H3 id="p11urdfbvynaojn1a11qu0hm98w1" class="xisDoc-title"&gt;DBCS Compatibility&lt;/H3&gt;
&lt;P class="xisDoc-paragraph"&gt;The DBCS equivalent function is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A tabindex="0" href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/nlsref/p0kyi9xaa211ecn1tm6zgohwsp3k.htm" target="_blank"&gt;KCOMPARE Function&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-xrefBookTitle"&gt;SAS National Language Support (NLS): Reference Guide&lt;/SPAN&gt;. There are minor differences between the COMPARE and KCOMPARE functions. Both functions accept varying numbers of arguments. Usage of the third argument is not compatible. This example shows the differences in the syntax.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;DIV id="n1ft0i0iqx8q1mn1opyreyfpemm6" class="xisDoc-syntaxSimple"&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xisDoc-syntaxLevel"&gt;&lt;SPAN class="xisDoc-keyword"&gt;COMPARE&lt;/SPAN&gt;(&lt;EM class="xisDoc-userSuppliedValue"&gt;string-1&lt;/EM&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;string-2&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-optional"&gt;&amp;lt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;modifier(s)&lt;/EM&gt;&amp;gt;&lt;/SPAN&gt;)&lt;/DIV&gt;
&lt;DIV class="xisDoc-syntaxLevel"&gt;&lt;SPAN class="xisDoc-keyword"&gt;KCOMPARE&lt;/SPAN&gt;(&lt;EM class="xisDoc-userSuppliedValue"&gt;string-1&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xisDoc-optional"&gt;&amp;lt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;position&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;lt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;count&lt;/EM&gt;&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;string-2&lt;/EM&gt;)&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Dec 2021 17:35:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/KCOMPARE-function-using-modifiers-causes-an-error/m-p/784347#M250298</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-12-06T17:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: KCOMPARE function: using modifiers causes an error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/KCOMPARE-function-using-modifiers-causes-an-error/m-p/784461#M250342</link>
      <description>&lt;P&gt;It looks like the documentation is inconsistent.&lt;/P&gt;
&lt;P&gt;Click on the feedback button on the&amp;nbsp;documentation page, the team are really good at replying.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 04:26:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/KCOMPARE-function-using-modifiers-causes-an-error/m-p/784461#M250342</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-12-07T04:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: KCOMPARE function: using modifiers causes an error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/KCOMPARE-function-using-modifiers-causes-an-error/m-p/785138#M250546</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Update:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;it looks like it was fixed in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;later release of M6 (while I was running in earlier release). And it is fixed in 9.4 M7.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 12:16:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/KCOMPARE-function-using-modifiers-causes-an-error/m-p/785138#M250546</guid>
      <dc:creator>pavelr</dc:creator>
      <dc:date>2021-12-09T12:16:32Z</dc:date>
    </item>
  </channel>
</rss>

