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 ...
Get PROC FCMP User-Defined Functions now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.