I have a number of conditions declared as macrovariables:
%let cond1=if x=10;
%let cond2=if x=20;
.
%let cond9=if x=90;
and an "empty" condition: %let cond10=;
I am creating 10 tables by looping in a macro:
%macro example;
%do i=1 %to 10;
data work&i;
set worktotal;
&&condition&i;
run;
%end;
%mend;
%example;
When i=1-9 I get the wanted conditions and when i=10 I get a single semicolon.
When i=10 work10 should be set to worktotal. This seems to work.
But I want to know if, in general, it's OK to place a single semicolon on a line in a data step where nothing should happen?