<?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 output the data with error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-output-the-data-with-error/m-p/455990#M115452</link>
    <description>&lt;P&gt;The log should indicate the data being used in that procedure?&lt;/P&gt;
&lt;P&gt;Are you using a macro of some sort or batch processing? Make sure to specify the correct options to see all the relevant details in the log - the options depend on how you're running your code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/194581"&gt;@xiangpang&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am randomly creating some datasets with missing data and do imputation with EM. However, rare events could happen and result in no convergence of GEE parameter estimates.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How could I output the&amp;nbsp;location of dataset with those kind of error message?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Error in computing the variance function&lt;/P&gt;
&lt;P&gt;Error in parameter estimate covariance computation&lt;/P&gt;
&lt;P&gt;Error in estimation routine)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Apr 2018 16:28:44 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-04-20T16:28:44Z</dc:date>
    <item>
      <title>how to output the data with error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-output-the-data-with-error/m-p/455982#M115445</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am randomly creating some datasets with missing data and do imputation with EM. However, rare events could happen and result in no convergence of GEE parameter estimates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could I output the&amp;nbsp;location of dataset with those kind of error message?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Error in computing the variance function&lt;/P&gt;&lt;P&gt;Error in parameter estimate covariance computation&lt;/P&gt;&lt;P&gt;Error in estimation routine)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 16:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-output-the-data-with-error/m-p/455982#M115445</guid>
      <dc:creator>xiangpang</dc:creator>
      <dc:date>2018-04-20T16:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to output the data with error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-output-the-data-with-error/m-p/455990#M115452</link>
      <description>&lt;P&gt;The log should indicate the data being used in that procedure?&lt;/P&gt;
&lt;P&gt;Are you using a macro of some sort or batch processing? Make sure to specify the correct options to see all the relevant details in the log - the options depend on how you're running your code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/194581"&gt;@xiangpang&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am randomly creating some datasets with missing data and do imputation with EM. However, rare events could happen and result in no convergence of GEE parameter estimates.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How could I output the&amp;nbsp;location of dataset with those kind of error message?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Error in computing the variance function&lt;/P&gt;
&lt;P&gt;Error in parameter estimate covariance computation&lt;/P&gt;
&lt;P&gt;Error in estimation routine)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 16:28:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-output-the-data-with-error/m-p/455990#M115452</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-20T16:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to output the data with error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-output-the-data-with-error/m-p/456000#M115462</link>
      <description>&lt;P&gt;Thanks for your reply. Yes, the log did indicate the data with error. I am using MACRO. Because of thousands of random datasets, I am wondering whether there is an option I could use in the MACRO to output the datasets with error message.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 16:45:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-output-the-data-with-error/m-p/456000#M115462</guid>
      <dc:creator>xiangpang</dc:creator>
      <dc:date>2018-04-20T16:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to output the data with error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-output-the-data-with-error/m-p/456004#M115465</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mprint symbolgen;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This will give you the full log. You could also add a step after your PROC to test if it completed successfully and if not to output your data set name and a message to the log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if &amp;amp;syserror %then %do;
%PUT ERROR:- &amp;amp;DATASETNAME errored out in this iteration;
%end;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Apr 2018 17:05:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-output-the-data-with-error/m-p/456004#M115465</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-20T17:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to output the data with error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-output-the-data-with-error/m-p/456098#M115494</link>
      <description>&lt;P&gt;Hello Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for taking the time to think and respond to my issue. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my understanding, your code just labeled the error, but not output the location of error. Am I right? For example, if there is an error in Nth imputation, how do I&amp;nbsp;save this information?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I got the following error message.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WARNING: Apparent symbolic reference SYSERROR not resolved.
ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand
       is required. The condition was: &amp;amp;syserror
ERROR: The macro EM will stop executing.
MPRINT(PROJECT):   ;
SYMBOLGEN:  Macro variable I resolves to 10
SYMBOLGEN:  Macro variable I resolves to 11
SYMBOLGEN:  Macro variable N_BOOT resolves to 10&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Apr 2018 21:39:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-output-the-data-with-error/m-p/456098#M115494</guid>
      <dc:creator>xiangpang</dc:creator>
      <dc:date>2018-04-20T21:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to output the data with error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-output-the-data-with-error/m-p/456100#M115496</link>
      <description>&lt;P&gt;I don't know what you're trying to say here. I can provide code snippets but I can't see your program or what you submitted. The code I posted is wrong, the macro variable is called SYSERR, but it doesn't seem to capture regression errors. You'll probably need a different automatic macro variable. The list is here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=n18mk1d0g1j31in1q6chazvfseel.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=n18mk1d0g1j31in1q6chazvfseel.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You clearly have macro variables with all you need though, you could pass them to a data set or do anything you want within the %DO to store the information that are in other macro variables.&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/194581"&gt;@xiangpang&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello Reeza,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for taking the time to think and respond to my issue. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my understanding, your code just labeled the error, but not output the location of error. Am I right? For example, if there is an error in Nth imputation, how do I&amp;nbsp;save this information?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I got the following error message.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WARNING: Apparent symbolic reference SYSERROR not resolved.
ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand
       is required. The condition was: &amp;amp;syserror
ERROR: The macro EM will stop executing.
MPRINT(PROJECT):   ;
SYMBOLGEN:  Macro variable I resolves to 10
SYMBOLGEN:  Macro variable I resolves to 11
SYMBOLGEN:  Macro variable N_BOOT resolves to 10&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 21:47:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-output-the-data-with-error/m-p/456100#M115496</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-20T21:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to output the data with error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-output-the-data-with-error/m-p/456167#M115522</link>
      <description>&lt;P&gt;Thanks, happy to learn and I will&amp;nbsp;read through it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Apr 2018 12:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-output-the-data-with-error/m-p/456167#M115522</guid>
      <dc:creator>xiangpang</dc:creator>
      <dc:date>2018-04-21T12:08:07Z</dc:date>
    </item>
  </channel>
</rss>

