<?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: ERROR: (execution) Invalid operand to operation in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Invalid-operand-to-operation/m-p/499014#M4377</link>
    <description>&lt;P&gt;The log says that the macro is calling the J function inside the MWVAR function. The J function allocates a matrix. Apparently, the function is being called as&lt;/P&gt;
&lt;P&gt;X = j(k, k, value);&lt;/P&gt;
&lt;P&gt;where k=0. The J function fails because&amp;nbsp;a valid matrix has k &amp;gt; 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, the log does not tell you WHY k is zero. It could be that you've incorrectly specified the arguments to the macro. For example, it might&amp;nbsp;be expecting positive values and your data is negative. Of maybe it is expecting numerical variables and your data is character.&amp;nbsp; I suggest you tun the macro with some valid data&amp;nbsp;and then compare the two data sets to figure out why one works and the other does not.&amp;nbsp; Alternatively, if you can post your data and the macro, someone on the community might be able to assist.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Sep 2018 11:01:29 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2018-09-26T11:01:29Z</dc:date>
    <item>
      <title>ERROR: (execution) Invalid operand to operation</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Invalid-operand-to-operation/m-p/498973#M4376</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run a macro ,And I use my own data as an input. But I got an error:&lt;/P&gt;&lt;P&gt;ERROR: (execution) Invalid operand to operation.&lt;/P&gt;&lt;P&gt;Any help would greatly appreciated.&lt;/P&gt;&lt;P&gt;I attached the log file, please have a look.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thankyou,&lt;/P&gt;&lt;P&gt;MIA&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 07:25:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Invalid-operand-to-operation/m-p/498973#M4376</guid>
      <dc:creator>MIA9510</dc:creator>
      <dc:date>2018-09-26T07:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: (execution) Invalid operand to operation</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Invalid-operand-to-operation/m-p/499014#M4377</link>
      <description>&lt;P&gt;The log says that the macro is calling the J function inside the MWVAR function. The J function allocates a matrix. Apparently, the function is being called as&lt;/P&gt;
&lt;P&gt;X = j(k, k, value);&lt;/P&gt;
&lt;P&gt;where k=0. The J function fails because&amp;nbsp;a valid matrix has k &amp;gt; 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, the log does not tell you WHY k is zero. It could be that you've incorrectly specified the arguments to the macro. For example, it might&amp;nbsp;be expecting positive values and your data is negative. Of maybe it is expecting numerical variables and your data is character.&amp;nbsp; I suggest you tun the macro with some valid data&amp;nbsp;and then compare the two data sets to figure out why one works and the other does not.&amp;nbsp; Alternatively, if you can post your data and the macro, someone on the community might be able to assist.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 11:01:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Invalid-operand-to-operation/m-p/499014#M4377</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-09-26T11:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: (execution) Invalid operand to operation</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Invalid-operand-to-operation/m-p/499353#M4378</link>
      <description>&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;Thank you so much, I’ve solve the problem. When I just use 20 data of all this 20000 big data,the&amp;nbsp;&lt;SPAN&gt;procedure worked. I wonder if it is because my data is to big and my laptop couldn't afford to run&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://communities.sas.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Whatever,thank U so.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MIA&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 02:54:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/ERROR-execution-Invalid-operand-to-operation/m-p/499353#M4378</guid>
      <dc:creator>MIA9510</dc:creator>
      <dc:date>2018-09-27T02:54:27Z</dc:date>
    </item>
  </channel>
</rss>

