<?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: Nested Do-Loops in proc IML in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Nested-Do-Loops-in-proc-IML/m-p/55945#M326</link>
    <description>I don't seem to be able to re-create your problem. From your explanation of what happened, it appears that something is happening in the SAS system to cause IML to suspend processing. I recommend you contact SAS Technical Support.</description>
    <pubDate>Mon, 25 Apr 2011 12:51:05 GMT</pubDate>
    <dc:creator>Hutch_sas</dc:creator>
    <dc:date>2011-04-25T12:51:05Z</dc:date>
    <item>
      <title>Nested Do-Loops in proc IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Nested-Do-Loops-in-proc-IML/m-p/55944#M325</link>
      <description>Hello all,&lt;BR /&gt;
&lt;BR /&gt;
I am using SAS version 9.2 TS2 M3 &amp;amp; have a small question about the&lt;BR /&gt;
following proc IML code.&lt;BR /&gt;
&lt;BR /&gt;
proc iml;&lt;BR /&gt;
do i=1 to 4;&lt;BR /&gt;
print i;&lt;BR /&gt;
        do j=1 to 4;&lt;BR /&gt;
                print j;&lt;BR /&gt;
        end;&lt;BR /&gt;
end;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
When I run this code, the log file (see below) doesnt show the 'quit'&lt;BR /&gt;
part, even though I submitted the entire code. The Editor window  shows "Filename* PROC IML running".Submitting any additional code gives the following message:&lt;BR /&gt;
"IML is currently suspended. To resume processing submitted statements&lt;BR /&gt;
return to the Output window and enter either BOTTOM; FORWARD or END."&lt;BR /&gt;
&lt;BR /&gt;
388  proc iml;&lt;BR /&gt;
NOTE: IML Ready&lt;BR /&gt;
389  do i=1 to 4;&lt;BR /&gt;
390  print i;&lt;BR /&gt;
391      do j=1 to 4;&lt;BR /&gt;
392          print j;&lt;BR /&gt;
393      end;&lt;BR /&gt;
394  end;&lt;BR /&gt;
&lt;BR /&gt;
I have to explicitly enter an 'end' in command bar of Output window, after which the&lt;BR /&gt;
following lines appear in the log file&lt;BR /&gt;
395  quit;&lt;BR /&gt;
NOTE: Exiting IML.&lt;BR /&gt;
NOTE: PROCEDURE IML used (Total process time):&lt;BR /&gt;
      real time           23.03 seconds&lt;BR /&gt;
      cpu time            0.39 seconds&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I have figured that it has something to do with the presence of 2 do&lt;BR /&gt;
loops within each other.It works fine if I remove the 2nd do loop&lt;BR /&gt;
(indexed by j).&lt;BR /&gt;
&lt;BR /&gt;
Could someone please explain why this is happening &amp;amp; how I can correct&lt;BR /&gt;
it?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance,&lt;BR /&gt;
Puneet</description>
      <pubDate>Sun, 24 Apr 2011 22:28:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Nested-Do-Loops-in-proc-IML/m-p/55944#M325</guid>
      <dc:creator>pjaiprak</dc:creator>
      <dc:date>2011-04-24T22:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Do-Loops in proc IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Nested-Do-Loops-in-proc-IML/m-p/55945#M326</link>
      <description>I don't seem to be able to re-create your problem. From your explanation of what happened, it appears that something is happening in the SAS system to cause IML to suspend processing. I recommend you contact SAS Technical Support.</description>
      <pubDate>Mon, 25 Apr 2011 12:51:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Nested-Do-Loops-in-proc-IML/m-p/55945#M326</guid>
      <dc:creator>Hutch_sas</dc:creator>
      <dc:date>2011-04-25T12:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Do-Loops in proc IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Nested-Do-Loops-in-proc-IML/m-p/55946#M327</link>
      <description>Thank you for the reply. The problem is specific to my installation. A friend ran the code on his machine &amp;amp; he didnt run into this problem either. I have contacted SAS Tech Support.</description>
      <pubDate>Mon, 25 Apr 2011 15:07:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Nested-Do-Loops-in-proc-IML/m-p/55946#M327</guid>
      <dc:creator>pjaiprak</dc:creator>
      <dc:date>2011-04-25T15:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Do-Loops in proc IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Nested-Do-Loops-in-proc-IML/m-p/55947#M328</link>
      <description>Just heard from the Tech Support. The solution is at &lt;A href="http://support.sas.com/kb/3/625.html" target="_blank"&gt;http://support.sas.com/kb/3/625.html&lt;/A&gt; and resolves the problem. Thanks for suggesting...</description>
      <pubDate>Mon, 25 Apr 2011 17:38:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Nested-Do-Loops-in-proc-IML/m-p/55947#M328</guid>
      <dc:creator>pjaiprak</dc:creator>
      <dc:date>2011-04-25T17:38:33Z</dc:date>
    </item>
  </channel>
</rss>

