<?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: Indirect assignment of empty matrix in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Indirect-assignment-of-empty-matrix/m-p/633927#M5050</link>
    <description>&lt;P&gt;IsEmpty(x)&amp;nbsp; could detect if x is empty .&lt;/P&gt;</description>
    <pubDate>Sun, 22 Mar 2020 10:28:51 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2020-03-22T10:28:51Z</dc:date>
    <item>
      <title>Indirect assignment of empty matrix</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Indirect-assignment-of-empty-matrix/m-p/633826#M5047</link>
      <description>&lt;P&gt;I was surprised recently to get a "&lt;FONT style="background-color: #ffffff;"&gt;Matrix has not been set to a value" error when attempting to assign an empty matrix using VALSET.&amp;nbsp; If the syntax&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;x = {};&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;is acceptable, should it not be possible to do the same thing indirectly?&amp;nbsp; For example,&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;call valset('x', {});&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;will generate the error referred to above.&amp;nbsp; My actual code is more complex, where the 2nd argument to VALSET is a function that might occasionally return an empty matrix, so I have simplified things above to illustrate the point.&amp;nbsp; I am using&amp;nbsp;SAS/IML 15.1.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2020 16:22:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Indirect-assignment-of-empty-matrix/m-p/633826#M5047</guid>
      <dc:creator>IanWakeling</dc:creator>
      <dc:date>2020-03-21T16:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect assignment of empty matrix</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Indirect-assignment-of-empty-matrix/m-p/633834#M5048</link>
      <description>&lt;P&gt;You are correct. I do not have a workaround when the name of the symbol is not known until run time, since the FREE statement requires a symbol name, not a character string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My only suggestion is to ask whether the function can return a missing value instead of an empty matrix. In my work, I often use a missing value to indicate an operation failed. It is easier to work with than an empty matrix.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2020 17:39:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Indirect-assignment-of-empty-matrix/m-p/633834#M5048</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-03-21T17:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect assignment of empty matrix</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Indirect-assignment-of-empty-matrix/m-p/633836#M5049</link>
      <description>&lt;P&gt;Thanks for your reply Rick.&amp;nbsp; I am still experimenting with Lists in IML, and I am using ListGetAllNames() which returns an empty matrix if there are no names associated with the list items.&amp;nbsp;&amp;nbsp; I am sure I will find a workaround.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2020 17:57:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Indirect-assignment-of-empty-matrix/m-p/633836#M5049</guid>
      <dc:creator>IanWakeling</dc:creator>
      <dc:date>2020-03-21T17:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect assignment of empty matrix</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Indirect-assignment-of-empty-matrix/m-p/633927#M5050</link>
      <description>&lt;P&gt;IsEmpty(x)&amp;nbsp; could detect if x is empty .&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2020 10:28:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Indirect-assignment-of-empty-matrix/m-p/633927#M5050</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-03-22T10:28:51Z</dc:date>
    </item>
  </channel>
</rss>

