Hi Phille,
I read some papers about the %do statement and I didn´t find anything about this way of using %do statement with specific cases. Maybe, %do in macro function don´t have this functionallity. When I tried to run, he don´t recognize the %do parameter.
You could resolver this problem using an array to perfom the specific calculation with 5, 7 and 9.
Other think, the do statement on the sas code, execute 7 times ( he executes 1, 2, 3, 4, 5, 7, 9) and not 3 times ( using 5, 7, 9), as it appears to be created for.
If you find a positiver answer to your problem, please send it here !!!
Regards.
Kassim
Brazil
... View more