05-17-2012 07:58 AM
I've got problem apparently with some macro execution timing.
I've got macro A from which I execute macro C in a loop %do %while%.
I need to assure that macro C finished executing in iteration n before executing macro C in iteration n+1.
Now I get errors:
Line 696: ERROR: The macro C is still executing and cannot be redefined.
Line 697: ERROR: A dummy macro will be compiled.
and in the log i see that some iterations of macro C did not start at all.
Is there a way to force SAS to woit for macro execution?
Thanks for help.
05-17-2012 08:21 AM
Sounds like you have code like:
Move the definition of macro c outside of the definition of macro a.
05-17-2012 09:01 AM
Next suspect is unbalanced quoting. Try starting SAS fresh. Does the macro A work the first time it is called?
Does it matter the values that are passed to it?