Hi all Below is my code. I would like to do : If work.CUSTOM1 is available/exist then send out an email to notify then STOP, with no further action. if data not available then process the data step as per usual. The code below it allows to send an email when CUSTOM1 is available, however the process step runs as well. I want it to stop processing when we know CUSTOM1 is there. Thanks in advance. data _null_; if exist("work.CUSTOM1") then call execute(catt( "filename send email " ," to=('test@abc.com')" ," type='text/html' " ," subject=""Data_FAILED"" " ,"from='test@abc.com' ;" ,"ods html body=send;" ,"ods html close;" ,"filename send clear;" )); else; data original_data; input var1 $ CON_DATE_START :ddmmyy10. PL_DATE_START :ddmmyy10. SS_DATE_START :ddmmyy10.; format CON_DATE_START ddmmyy10. PL_DATE_START ddmmyy10. SS_DATE_START ddmmyy10.; datalines; A 12/12/2008 11/01/2022 05/10/2007 B 19/01/2001 11/02/2008 01/03/2020 C 23/10/2008 02/08/2019 02/02/2010 D 01/09/2002 01/01/2000 19/03/2006 ; run; run;
... View more