<?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: Chekking the data and if its not correct sending an alarm in the form of an Email in SAS EG in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Chekking-the-data-and-if-its-not-correct-sending-an-alarm-in-the/m-p/640345#M35875</link>
    <description>Hi Kurt,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply. Okay So I don't run the automated LASR tables anymore. But how exactly do you build checks in the task scheduler and send e-mails?</description>
    <pubDate>Thu, 16 Apr 2020 09:45:35 GMT</pubDate>
    <dc:creator>AK100</dc:creator>
    <dc:date>2020-04-16T09:45:35Z</dc:date>
    <item>
      <title>Chekking the data and if its not correct sending an alarm in the form of an Email in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Chekking-the-data-and-if-its-not-correct-sending-an-alarm-in-the/m-p/640317#M35873</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I have a data-project in SAS EG (which is connected to SAS VA through LASR Tables). Now this data-project is being runned 2x a day automatically through the SAS management console and the task scheduler (so it is being updated 2 times a day). It is a fully automated data-set, which means that I won't check everyday if the data is realistic. It is only the end-user who sometimes tells he sees some strange values or blank fields.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Now I want the following, I want to receive an alarm message (preferable in the form of an email) if the data that is being updated is not valid. Just to give some examples: If the column speed for example contains an unrealistic value (with a 9 digit) while the normal speed should be somewhere between 0 - 200 KM/H, or if some fields are blank fields or like some datevalues are unrealistic.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any deviation should cause the alarm to go off and send me (and others!) an e-mail (text-message, or something else, if you have any ideas?) so I can check why the data is not being updated in a correct manner. (In my head I already have made a list which could cause possible deviations).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope someone has a great idea, I appreciate your help. Thank you in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 08:19:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Chekking-the-data-and-if-its-not-correct-sending-an-alarm-in-the/m-p/640317#M35873</guid>
      <dc:creator>AK100</dc:creator>
      <dc:date>2020-04-16T08:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Chekking the data and if its not correct sending an alarm in the form of an Email in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Chekking-the-data-and-if-its-not-correct-sending-an-alarm-in-the/m-p/640344#M35874</link>
      <description>&lt;P&gt;Put the checks into your scheduled job program, and send the email instead of updating the LASR table.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 09:36:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Chekking-the-data-and-if-its-not-correct-sending-an-alarm-in-the/m-p/640344#M35874</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-16T09:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Chekking the data and if its not correct sending an alarm in the form of an Email in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Chekking-the-data-and-if-its-not-correct-sending-an-alarm-in-the/m-p/640345#M35875</link>
      <description>Hi Kurt,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply. Okay So I don't run the automated LASR tables anymore. But how exactly do you build checks in the task scheduler and send e-mails?</description>
      <pubDate>Thu, 16 Apr 2020 09:45:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Chekking-the-data-and-if-its-not-correct-sending-an-alarm-in-the/m-p/640345#M35875</guid>
      <dc:creator>AK100</dc:creator>
      <dc:date>2020-04-16T09:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Chekking the data and if its not correct sending an alarm in the form of an Email in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Chekking-the-data-and-if-its-not-correct-sending-an-alarm-in-the/m-p/640360#M35876</link>
      <description>&lt;P&gt;In the program, there will be data steps that create a table for further processing. You can build a detection mechanism like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let detect=0; /* "false" */

data next_step;
set from_previous_step;
/* processing */
if missing(variable) then call symput('detect','1');
run;

%if not &amp;amp;detect. %then %do;
/* create final table */
%end;
%if &amp;amp;detect. %then %do;
/* send email */
%end;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Apr 2020 10:11:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Chekking-the-data-and-if-its-not-correct-sending-an-alarm-in-the/m-p/640360#M35876</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-16T10:11:56Z</dc:date>
    </item>
  </channel>
</rss>

