I am trying to implement a macro that takes only odd values into the algorithm. My strategy thus far is as follows:
%macro TEST;
%do i=1 %TO 5;
%IF %SYSFUNC(MOD(&i,2)=1) %THEN %DO;
ALGORITHM
%END
%END
%MEND TEST;
%TEST
But I receive several errors stating that the 'Macro keyword do appears as text', among others. How might I solve this?