In a data step where you having this single observation, and you do the evaluation of whether or not the conditions are met, create a 0 or 1 variable named condition_met, then
call symputx('condition_met',condition met);
This creates a macro variable &CONDITION_MET, then in your macro
%if &condition_met %then %do;
/* Remaining steps of the macro */
%end;
--
Paige Miller