Chapter 5: RUN_MACRO and RUN_SASFILE
The FCMP procedure supports several built-in SAS functions not otherwise available in Base SAS. RUN_MACRO and RUN_SASFILE are two of the most powerful functions, with the former calling a SAS macro and the latter calling a SAS program file from inside a user-defined function or subroutine. RUN_MACRO and RUN_SASFILE enable SAS macros, which can enclose Base SAS statements, DATA steps, and procedures, to be executed inside of functions. This versatility facilitates some pretty unimaginable software design, not otherwise possible in the SAS language.
In a general, programming-language-agnostic sense, functions communicate with a calling module by returning a value—the return value—as discussed throughout Chapter ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access