Chapter 9: Expanding the Application of Functions
Whereas the first chapter introduced functions and function nomenclature, and other chapters described and demonstrated function design and development, this chapter stands alone in focusing on function invocation. Thus far, myriad examples have demonstrated calling functions and subroutines from the DATA step, as well as calling functions via the %SYSFUNC function and subroutines via the %SYSCALL statement. User-defined functions have also been called from the SQL procedure and the FCMP procedure. This chapter demonstrates two final methods of invoking user-defined functions—using the OTHER option of the FORMAT procedure and inside the COMPUTE block of the REPORT procedure.
SAS formats and informats ...
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