<?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: Appending or updating information within a Proc IML do loop in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Appending-or-updating-information-within-a-Proc-IML-do-loop/m-p/231185#M2429</link>
    <description>&lt;P&gt;Yes, you need to put the APPEND statement in the loop itself, so that the APPEND statement executes 100 times.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Oct 2015 14:59:44 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2015-10-22T14:59:44Z</dc:date>
    <item>
      <title>Appending or updating information within a Proc IML do loop</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Appending-or-updating-information-within-a-Proc-IML-do-loop/m-p/231181#M2428</link>
      <description>&lt;P&gt;Using the APPEND statement, output data can be created within Proc IML. Using Proc Append within a macro do loop, output can be concatenated from multiple, separate Proc IML calls within that macro.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question concerns concatenating or updating output data within a do loop from a single Proc IML call. The APPEND statement only retains the most recent value from the loops. I would like to track the successive values within each iteration of that loop. So, if the loop iterates 100 times, then there would be 100 values appended to a single output data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible in Proc IML?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 14:53:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Appending-or-updating-information-within-a-Proc-IML-do-loop/m-p/231181#M2428</guid>
      <dc:creator>xtc283x</dc:creator>
      <dc:date>2015-10-22T14:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Appending or updating information within a Proc IML do loop</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Appending-or-updating-information-within-a-Proc-IML-do-loop/m-p/231185#M2429</link>
      <description>&lt;P&gt;Yes, you need to put the APPEND statement in the loop itself, so that the APPEND statement executes 100 times.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 14:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Appending-or-updating-information-within-a-Proc-IML-do-loop/m-p/231185#M2429</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-10-22T14:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Appending or updating information within a Proc IML do loop</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Appending-or-updating-information-within-a-Proc-IML-do-loop/m-p/231188#M2430</link>
      <description>&lt;P&gt;Your comment helped jog me into a solution. By placing the "create" statement above the initiation of the do loop, placing the "append" statement withing the loop and the "close" statement after the end of the loop, I got the desired results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 15:08:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Appending-or-updating-information-within-a-Proc-IML-do-loop/m-p/231188#M2430</guid>
      <dc:creator>xtc283x</dc:creator>
      <dc:date>2015-10-22T15:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Appending or updating information within a Proc IML do loop</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Appending-or-updating-information-within-a-Proc-IML-do-loop/m-p/231193#M2431</link>
      <description>&lt;P&gt;I'll add that you can use this same technique to write data sets that are larger than can fit into RAM, or to write the results of multivariate computations without needing to remember the results while inside the loop.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For using this technique to write large data, see &lt;A href="http://blogs.sas.com/content/iml/2015/03/09/writing-data-in-chunks.html" target="_self"&gt;"Writing data in chunks"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;To see it in an application of simulating logistic response variable, see &lt;A href="http://blogs.sas.com/content/iml/2014/06/27/simulate-many-samples-from-a-logistic-regression-model.html" target="_self"&gt;"Simulate many samples from a logistic regression model"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Search for "Append" on this pages and notice that the append is inside a DO loop, but the CREATE and CLOSE are not.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 15:44:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Appending-or-updating-information-within-a-Proc-IML-do-loop/m-p/231193#M2431</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-10-22T15:44:53Z</dc:date>
    </item>
  </channel>
</rss>

