There are two parts to this.
Firstly your non-continuous do loop is not doing what you think it is. The syntax for the do statement is:
DO index-variable=specification-1 <, . . . specification-n>;
where
specification
denotes an expression or a series of expressions in this form
start
You've given, excuse the psuedo-markup, the following:
Next, the syntax for %DO (Iterative) does not support multiple specifications and is given as
%DO macro-variable=start %TO stop <%BY increment>;
The equivalent macro code would be
%macro temp1;
data temp;
%do i= 1 %to 5;
m=&i+1;
%end;
%do i=7 %to 9 %by 2;
m=&i+1;
%end;
run;
%mend temp1;
%temp1;
which would be resolved to the following executable code:
data temp;
m=1+1;
m=2+1;
m=3+1;
m=4+1;
m=5+1;
m=7+1;
m=9+1;
run;
If you want to read the manual it is available
here.
I'm still mystified by what you are trying to accomplish, but hope this helps,
ProcMe