Everybody is familiar with SAS global statements, such as
FILENAME statement
LIBNAME statement
OPTIONS statement
TITLE statement
FOOTNOTE statement
X statement, etc.
They can be used in SAS open code, within SAS macros, as well as within DATA and PROC steps.
Global statements are not executable by definition, meaning they are not executed during individual iterations of the DATA step. However, they do "take effect", that is in essence "execute" at some point in a SAS program. To lift the veil of mystery about SAS global statements' habits I recently wrote a blog post
How to conditionally execute SAS global statements
Take a read and you will never be confused by the global statements' behavior again.
Happy programming,
Leonid
... View more