<?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 show errors or warnings in Out screen but NOT only in log? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-show-errors-or-warnings-in-Out-screen-but-NOT-only-in-log/m-p/395764#M278005</link>
    <description>&lt;P&gt;The simplest approach - note the records via a flag and then use PROC PRINT to display the results to the log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, each check is manual so you will have to code this how you want it to look.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Sep 2017 21:08:49 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-09-13T21:08:49Z</dc:date>
    <item>
      <title>How to show errors or warnings in Out screen but NOT only in log?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-show-errors-or-warnings-in-Out-screen-but-NOT-only-in-log/m-p/395167#M278000</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to ask how to output the warning when data format is incorrect? The warning is to be printed in Out screen or Results Viewer Screen or a popped out window screen, not Log, because there are a lot of information shown in the Log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data(AA) looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID &amp;nbsp; &amp;nbsp; &amp;nbsp; birth &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Transfer&lt;/P&gt;&lt;P&gt;01 &amp;nbsp;02/30/1997 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/P&gt;&lt;P&gt;02 &amp;nbsp;05/23/1992 &amp;nbsp; &amp;nbsp; 1992-05-23&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to show the following information&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;_ERROR_=1 ; WARNING! INVALID DATE FOR SAS; data=AA, ID=01, birth=02/30/1997&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 16:54:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-show-errors-or-warnings-in-Out-screen-but-NOT-only-in-log/m-p/395167#M278000</guid>
      <dc:creator>Irenech34</dc:creator>
      <dc:date>2017-09-12T16:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to show errors or warnings in Out screen but NOT only in log?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-show-errors-or-warnings-in-Out-screen-but-NOT-only-in-log/m-p/395169#M278001</link>
      <description>&lt;P&gt;Where exactly do you want this output?&lt;/P&gt;
&lt;P&gt;In the Results Pane?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That'll be a manual process, whereas the log could be directed to a file instead?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 16:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-show-errors-or-warnings-in-Out-screen-but-NOT-only-in-log/m-p/395169#M278001</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-12T16:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to show errors or warnings in Out screen but NOT only in log?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-show-errors-or-warnings-in-Out-screen-but-NOT-only-in-log/m-p/395700#M278003</link>
      <description>&lt;P&gt;&lt;SPAN&gt;How about showing this in Results Viewer Screen?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't need the full log but just the error messege.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The warning information should be specific, and need to identify for which SAS dataset, for which record (row), for which variable (column), and the data with wrong date value.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 18:29:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-show-errors-or-warnings-in-Out-screen-but-NOT-only-in-log/m-p/395700#M278003</guid>
      <dc:creator>Irenech34</dc:creator>
      <dc:date>2017-09-13T18:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to show errors or warnings in Out screen but NOT only in log?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-show-errors-or-warnings-in-Out-screen-but-NOT-only-in-log/m-p/395757#M278004</link>
      <description>Afaik no automatism exists. The problem can be solved by maintainig a log-dataset and printing it at the end of the process/program. Have a look at log4sas - unfortunately the macros can only write to a file, but import + print are easy to code and you don't have to create the steps for appending to a log datasets yourself.</description>
      <pubDate>Wed, 13 Sep 2017 20:37:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-show-errors-or-warnings-in-Out-screen-but-NOT-only-in-log/m-p/395757#M278004</guid>
      <dc:creator>error_prone</dc:creator>
      <dc:date>2017-09-13T20:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to show errors or warnings in Out screen but NOT only in log?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-show-errors-or-warnings-in-Out-screen-but-NOT-only-in-log/m-p/395764#M278005</link>
      <description>&lt;P&gt;The simplest approach - note the records via a flag and then use PROC PRINT to display the results to the log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, each check is manual so you will have to code this how you want it to look.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 21:08:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-show-errors-or-warnings-in-Out-screen-but-NOT-only-in-log/m-p/395764#M278005</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-13T21:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to show errors or warnings in Out screen but NOT only in log?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-show-errors-or-warnings-in-Out-screen-but-NOT-only-in-log/m-p/395900#M278006</link>
      <description>&lt;P&gt;Thank you all very much.&lt;/P&gt;&lt;P&gt;So you means to save the log then import again and using proc print to print what I want?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 13:41:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-show-errors-or-warnings-in-Out-screen-but-NOT-only-in-log/m-p/395900#M278006</guid>
      <dc:creator>Irenech34</dc:creator>
      <dc:date>2017-09-14T13:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to show errors or warnings in Out screen but NOT only in log?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-show-errors-or-warnings-in-Out-screen-but-NOT-only-in-log/m-p/395934#M278007</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/164507"&gt;@Irenech34&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thank you all very much.&lt;/P&gt;
&lt;P&gt;So you means to save the log then import again and using proc print to print what I want?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's one approach.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another is to save the errors in a data set themselves and then print that out.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first approach only works if a SAS 'error' is the same as your error definition, which I don't think is true.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 14:41:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-show-errors-or-warnings-in-Out-screen-but-NOT-only-in-log/m-p/395934#M278007</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-14T14:41:55Z</dc:date>
    </item>
  </channel>
</rss>

