09-09-2015 12:38 PM
Pretty Simple logic, performs email send independant of IF logic:
if 1=0 then do;
options emailsys=MAPI emailid=first.last;
filename mailbox email;
file mailbox firstname.lastname@example.org' subject='MAPI test II';
put "email sent";
put "email not sent";
Corresponding Log output
email not sent
Subject: MAPI test II
09-10-2015 09:36 AM
there are no records written to the file "mailbox". however the file is "touched" (open and close of file) and this action sends the email.
what condition to you need to test?
09-11-2015 02:10 AM
The OPTIONS and FILENAME statements are global statements they can not be executed using a DATA Step IF. I suggest to use Macro coding to check for the condition and then executed the complete DATA Step based on the condition.