<?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: Unknown error occurs when running SAS IML in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/704263#M5352</link>
    <description>&lt;P&gt;If the problem is solved, could you mark one of the answers and close the thread? Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Dec 2020 19:39:19 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2020-12-07T19:39:19Z</dc:date>
    <item>
      <title>Unknown error occurs when running SAS IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/566764#M4702</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a file of code that works fine when I run it on my desktop.&lt;/P&gt;&lt;P&gt;But this kind of "Unknown error" occurs when I run it on my laptop which is Windows 10.&lt;/P&gt;&lt;P&gt;I am kinda sure this is not caused by my code, but I don't know how to deal with it.&lt;/P&gt;&lt;P&gt;I tried to re-install the SAS, but it still occurs.&lt;/P&gt;&lt;P&gt;The return code is rc=6, which stands for "SAS internal error". Does this mean this is really caused by SAS software?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone help me with any advise or solution, please?&lt;/P&gt;&lt;P&gt;The code is long but I will post it if it is necessary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank ahead!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 602px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30341iAC946A21475FEB02/image-dimensions/602x353?v=v2" width="602" height="353" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 01:43:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/566764#M4702</guid>
      <dc:creator>anthonywang</dc:creator>
      <dc:date>2019-06-18T01:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown error occurs when running SAS IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/566775#M4703</link>
      <description>&lt;P&gt;Serious errors like this are best progressed by SAS Tech Support. Please raise a track if you haven't done so already.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 04:04:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/566775#M4703</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-06-18T04:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown error occurs when running SAS IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/566779#M4704</link>
      <description>&lt;P&gt;Any code that works in one system but not another and isn't related to file paths should likely be reported to SAS Tech Support.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's possible you have different versions and one is catching a newer error, but your best bet is to check with SAS directly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's definitely nothing we can do without the code as well.&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/231012"&gt;@anthonywang&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a file of code that works fine when I run it on my desktop.&lt;/P&gt;
&lt;P&gt;But this kind of "Unknown error" occurs when I run it on my laptop which is Windows 10.&lt;/P&gt;
&lt;P&gt;I am kinda sure this is not caused by my code, but I don't know how to deal with it.&lt;/P&gt;
&lt;P&gt;I tried to re-install the SAS, but it still occurs.&lt;/P&gt;
&lt;P&gt;The return code is rc=6, which stands for "SAS internal error". Does this mean this is really caused by SAS software?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could anyone help me with any advise or solution, please?&lt;/P&gt;
&lt;P&gt;The code is long but I will post it if it is necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank ahead!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 602px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30341iAC946A21475FEB02/image-dimensions/602x353?v=v2" width="602" height="353" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 04:28:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/566779#M4704</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-18T04:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown error occurs when running SAS IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/566787#M4705</link>
      <description>&lt;P&gt;Thank you for your response, I will reporting my problem to SAS.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 05:57:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/566787#M4705</guid>
      <dc:creator>anthonywang</dc:creator>
      <dc:date>2019-06-18T05:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown error occurs when running SAS IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/566788#M4706</link>
      <description>&lt;P&gt;Thanks a lot, I will submit the problem to SAS.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 05:58:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/566788#M4706</guid>
      <dc:creator>anthonywang</dc:creator>
      <dc:date>2019-06-18T05:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown error occurs when running SAS IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/566816#M4707</link>
      <description>&lt;P&gt;This is a known problem in some versions of the Intel Math Kernel Library (MKL), which SAS/IML uses to accelerate certain computations. I think it was first noticed in SAS/IML 14.3 and 15.1. It seems to be data dependent and occurs with large matrices when the KML tries to multithread certain computations. Sometimes changing the order of operations (by using temporary variables and rearranging the computation) can make the problem go away, but I don't have any general advice that can make the problem go away all the time.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 10:00:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/566816#M4707</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-06-18T10:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown error occurs when running SAS IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/566854#M4708</link>
      <description>&lt;P&gt;Actually, I might have some general advice. Because this is a problem with multithreading large computations, you can turn off the multithreading by using&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;options NOTHREADS;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;proc iml;&lt;/P&gt;
&lt;P&gt;&amp;lt;program goes here&amp;gt;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;options THREADS;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, this will result in a loss of performance. How much performance is lost depending on how many threads are being used and the kinds of computations in the program. For straight matrix multiplication, the program might take 2-4 times longer.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 13:07:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/566854#M4708</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-06-18T13:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown error occurs when running SAS IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/566979#M4709</link>
      <description>&lt;P&gt;Hi Rick, it is data dependent. I will try to turn off the multi threading.&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 17:34:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/566979#M4709</guid>
      <dc:creator>anthonywang</dc:creator>
      <dc:date>2019-06-18T17:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown error occurs when running SAS IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/644714#M5061</link>
      <description>&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I had the same problem and your solution did work, but it definitely was a lot slower!&amp;nbsp; Pehaps there will be a better fix in the future? But at least for right now, I'm glad to know how to fix it and that it wasn't my error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 14:11:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/644714#M5061</guid>
      <dc:creator>stevehillis</dc:creator>
      <dc:date>2020-05-02T14:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown error occurs when running SAS IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/644719#M5062</link>
      <description>&lt;P&gt;Thanks for writing. SAS has updated the version of the MKL in SAS 9.4M7 (due out in late 2020) and the problem does not occur on the test cases that we know about. Also, SAS customers who use SAS Viya do not have this problem, since Viya uses a newer version of the MKL.&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 14:43:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/644719#M5062</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-05-02T14:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown error occurs when running SAS IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/644725#M5063</link>
      <description>Great -- thanks for doing that and letting me know so quickly!!&lt;BR /&gt;-Steve</description>
      <pubDate>Sat, 02 May 2020 15:29:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/644725#M5063</guid>
      <dc:creator>stevehillis</dc:creator>
      <dc:date>2020-05-02T15:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown error occurs when running SAS IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/704263#M5352</link>
      <description>&lt;P&gt;If the problem is solved, could you mark one of the answers and close the thread? Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 19:39:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Unknown-error-occurs-when-running-SAS-IML/m-p/704263#M5352</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-12-07T19:39:19Z</dc:date>
    </item>
  </channel>
</rss>

