have a program that runs and send an email but want to set it up so the macro that sent the email execute depending on the server (live or test) I am runing it on. I have created 4 macros namely email,report,live_email and live_report - I call the maco %report if there is a record in the dataset else %email. The same recipient for %email and %report and another recipient for live_email and live_report. currently it send the email to %report recipient irrespective or the server. /* SETTING ENVIRONMENT */ options symbolgen mlogic; %let env = %scan( &SYSTCPIPHOSTNAME,1,'.'); ** *********************** LIVE ***************************************;; %let live = gal; %let liveRecipients = 'missjoe.blog@sch.com '; ************************** TEST ***************************************;; %let test = guy; %let testRecipients = 'joe.bloc@sch.com'; data _null_; set cont; if &env. eq &test. then do; if nobs>0 then call execute('%report'); else call execute('%email'); end; else if &env. eq &live. then do; if nobs>0 then call execute('%live_report'); else call execute('%live_email'); end; run; Help please!!
... View more