PROC CALIS | PROC OPTLSO |
PROC GA | PROC QUANTREG |
PROC GENMOD | PROC REPORT COMPUTE blocks |
PROC GLIMMIX | SAS Risk Dimensions procedures |
PROC MCMC | PROC SEVERITY |
PROC MODEL | PROC SIMILARITY |
PROC NLIN | PROC SQL (functions with array arguments are not supported) |
PROC NLMIXED | PROC SURVEYPHREG |
PROC NLP | PROC VARMAX |
General form for a basic
PROC FCMP step to create and save a function.
PROC FCMP OUTLIB= libref.data-set.package;
Function function-name(argument-1<$>,...,argument-n<$><length>;
programming
statements;
Return (expression);
ENDSUB;
QUIT;
PROC FCMP
creates, tests, and
stores SAS functions for use by other SAS procedures and the DATA
step.
ENDSUB
ends the function’s
declaration.
FUNCTION
begins the definition
of the function. The FUNCTION definition ends with the ENDSUB statement.
programming statements
are a series of DATA
step statements that describe the function’s actions.
OUTLIB
specifies the package
where routines are stored.
RETURN
specifies the value
that is returned by the function.
|