These tokens are then checked for syntactically correctness and, if correct, compiled.
Order of compilation
In the following example, the macro compiler compiles and executes the
%put
as soon as it reaches its terminating
;
.
The SAS language execution, however, executes its text only when the run;
statement is reached.
Therefore, it first prints Hello from macro put, then Hello from statement put, although these two statements are in reverse order in the source code.