<?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: Do not exit IML when there are errors in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Do-not-exit-IML-when-there-are-errors/m-p/93996#M625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow. I never knew SAS/IML did that.&amp;nbsp; How many errors are there? Is there a reason why you don't or can't fix the errors?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For unititialized variables, perhaps you could try something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if ncol(tt01)=0 then stop;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if ncol(tt01)=0 then store _all_;&amp;nbsp; /* save matrices in case IML exits */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if any of these will work. I know that there are a lot of system options that SAS supports for handling errors. See if the options on this page are useful: &lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000993436.htm" title="http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000993436.htm"&gt;SAS(R) 9.2 Language Reference: Concepts, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jun 2013 00:35:25 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2013-06-04T00:35:25Z</dc:date>
    <item>
      <title>Do not exit IML when there are errors</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Do-not-exit-IML-when-there-are-errors/m-p/93995#M624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to stop IML exit when it gets errors? That's because I have to re-run everything again in IML after it exits.&lt;/P&gt;&lt;P&gt;It is possible IML exits when it encounters a certain number of errors, so perhaps I can limit this number.&lt;/P&gt;&lt;P&gt;See the following log of my program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;90&amp;nbsp;&amp;nbsp; create mydata from tt01[colname=namevar];&lt;/P&gt;&lt;P&gt;ERROR: Matrix tt01 has not been set to a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; statement : CREATE at line 90 column 1&lt;/P&gt;&lt;P&gt;91&amp;nbsp;&amp;nbsp; append from tt01;&lt;/P&gt;&lt;P&gt;ERROR: No data set is currently open for output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; statement : APPEND at line 91 column 1&lt;/P&gt;&lt;P&gt;92&amp;nbsp;&amp;nbsp; close mydata;&lt;/P&gt;&lt;P&gt;NOTE: Cannot close WORK.MYDATA; it is not open.&lt;/P&gt;&lt;P&gt;93&lt;/P&gt;&lt;P&gt;94&amp;nbsp;&amp;nbsp; create mydata from ta01[colname=namevar];&lt;/P&gt;&lt;P&gt;ERROR: Operand namevar does not have a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; statement : CREATE at line 94 column 1&lt;/P&gt;&lt;P&gt;NOTE: Exiting IML.&lt;/P&gt;&lt;P&gt;NOTE: Storage library SASUSER.MYMODULES closed.&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE IML used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 26:06.64&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25.25 seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2013 21:53:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Do-not-exit-IML-when-there-are-errors/m-p/93995#M624</guid>
      <dc:creator>Bogdan</dc:creator>
      <dc:date>2013-06-03T21:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Do not exit IML when there are errors</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Do-not-exit-IML-when-there-are-errors/m-p/93996#M625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow. I never knew SAS/IML did that.&amp;nbsp; How many errors are there? Is there a reason why you don't or can't fix the errors?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For unititialized variables, perhaps you could try something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if ncol(tt01)=0 then stop;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if ncol(tt01)=0 then store _all_;&amp;nbsp; /* save matrices in case IML exits */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if any of these will work. I know that there are a lot of system options that SAS supports for handling errors. See if the options on this page are useful: &lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000993436.htm" title="http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000993436.htm"&gt;SAS(R) 9.2 Language Reference: Concepts, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 00:35:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Do-not-exit-IML-when-there-are-errors/m-p/93996#M625</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2013-06-04T00:35:25Z</dc:date>
    </item>
  </channel>
</rss>

