http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002890484.htm
Overview: FCMP Procedure
What Does the FCMP Procedure Do? |
The SAS Function Compiler (FCMP) procedure enables you to create, test,and store SAS functions and CALL routines before you use them in other SASprocedures or DATA steps. PROC FCMP provides the ability to build functionsand CALL routines using DATA step syntax that is stored in a data set. Theprocedure accepts slight variations of DATA step statements, and you can usemost features of the SAS programming language in functions and CALL routinesthat are created by PROC FCMP. You can call PROC FCMP functions and CALL routinesfrom the DATA step just as you would any other SAS function or CALL routine.This feature enables programmers to more easily read, write, and maintaincomplex code with independent and reusable subroutines. You can reuse thePROC FCMP routines in any DATA step or SAS procedure that has access to theirstorage location.
You can use the functions and subroutines that you create in PROC FCMPwith the DATA step, the WHERE statement, the Output Delivery System (ODS),and with the following procedures:
- PROC CALIS
- PROC COMPILE
- PROC COMPUTAB
- PROC GA
- PROC GENMOD
- PROC MCMC
- PROC MODEL
- PROC NLIN
- PROC NLMIXED
- PROC NLP
- PROC PHREG
- PROC REPORT COMPUTE blocks
- Risk Dimensions procedures
- PROCSIMILARITY
- PROC SQL (functions with array arguments are not supported)