<?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: How to return multiple values from a SAS/IML function if one of them is a vector? in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-return-multiple-values-from-a-SAS-IML-function-if-one-of/m-p/762678#M5606</link>
    <description>&lt;P&gt;You can do either of the following:&lt;/P&gt;
&lt;P&gt;1. Define your function to be a subroutine. If you use a subroutine, &lt;A href="https://blogs.sas.com/content/iml/2012/08/20/how-to-return-multiple-values-from-a-sasiml-function.html" target="_self"&gt;you can return multiple arguments&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;2. Define your function to &lt;A href="https://blogs.sas.com/content/iml/2018/01/24/pass-lists-to-sas-iml-functions.html" target="_self"&gt;return a list&lt;/A&gt;. You can then access individual items in the list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using a subroutine is more efficient and doesn't have any learning curve. However, many programmers enjoy using lists to pack a bunch of related items into a single symbol.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Aug 2021 20:04:26 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2021-08-19T20:04:26Z</dc:date>
    <item>
      <title>How to return multiple values from a SAS/IML function if one of them is a vector?</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-return-multiple-values-from-a-SAS-IML-function-if-one-of/m-p/762669#M5605</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to simulate data, since I need to call that data more than once in my code, I defined it as a function. The issue here is that I need to return that data (X) along with another numeric value that I called it (q).&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 19:47:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-return-multiple-values-from-a-SAS-IML-function-if-one-of/m-p/762669#M5605</guid>
      <dc:creator>Salah</dc:creator>
      <dc:date>2021-08-19T19:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to return multiple values from a SAS/IML function if one of them is a vector?</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-return-multiple-values-from-a-SAS-IML-function-if-one-of/m-p/762678#M5606</link>
      <description>&lt;P&gt;You can do either of the following:&lt;/P&gt;
&lt;P&gt;1. Define your function to be a subroutine. If you use a subroutine, &lt;A href="https://blogs.sas.com/content/iml/2012/08/20/how-to-return-multiple-values-from-a-sasiml-function.html" target="_self"&gt;you can return multiple arguments&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;2. Define your function to &lt;A href="https://blogs.sas.com/content/iml/2018/01/24/pass-lists-to-sas-iml-functions.html" target="_self"&gt;return a list&lt;/A&gt;. You can then access individual items in the list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using a subroutine is more efficient and doesn't have any learning curve. However, many programmers enjoy using lists to pack a bunch of related items into a single symbol.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 20:04:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-return-multiple-values-from-a-SAS-IML-function-if-one-of/m-p/762678#M5606</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-08-19T20:04:26Z</dc:date>
    </item>
  </channel>
</rss>

