BookmarkSubscribeRSS Feed
AK100
Pyrite | Level 9

Hello All,


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. 


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. 

 

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).

 

I hope someone has a great idea, I appreciate your help. Thank you in advance 🙂

 

 

3 REPLIES 3
AK100
Pyrite | Level 9
Hi Kurt,

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?
Kurt_Bremser
Super User

In the program, there will be data steps that create a table for further processing. You can build a detection mechanism like this:

%let detect=0; /* "false" */

data next_step;
set from_previous_step;
/* processing */
if missing(variable) then call symput('detect','1');
run;

%if not &detect. %then %do;
/* create final table */
%end;
%if &detect. %then %do;
/* send email */
%end;

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 925 views
  • 2 likes
  • 2 in conversation