pawan wrote:
Hi Ken, I think you can give a try as below...
%DO i = 1 %TO 8, 10 %TO 100;
or
%DO i = 1 %TO 8, 10 %TO 49, 50 %TO 100;
Above code worked for me. All the Best!!
Unfortunately, that sort of list works for data step DO loops, but not macro %DO loops: 16 %macro loop(dummy);
17 %do i = 1 %TO 8, 10 %TO 20;
18 %end;
19 %mend;
NOTE: The macro LOOP completed compilation without errors.
9 instructions 184 bytes.
20 %loop()
ERROR: A character operand was found in the %EVAL function or %IF condition where a
numeric operand is required. The condition was: 8, 10 %TO 20
ERROR: The %TO value of the %DO I loop is invalid.
ERROR: The macro LOOP will stop executing.
... View more