You can write your own functions using DATA step syntax. The SAS Function Compiler procedure, or FCMP procedure, enables you to create, test, and store SAS functions ...