Adding Statistical Functionality to the DATA Step With PROC FCMP

Date Added: Mar 2010
Format: PDF

How many times a person had to write a cumbersome workaround to do an analytical task inside a DATA step that would be easy if one could just call SAS from the DATA step? With the advent of PROC FCMP in SAS 9.2, one can do exactly that. This paper demonstrates how to add statistical functionality to the DATA step through the definition of FCMP functions. The paper will provide specific examples of how to encapsulate SAS Analytics within FCMP functions and thus make them callable from the DATA step.