Features: |
INT statements KIND= prototype argument |
Other features: |
PROC FCMP |
options nodate pageno=1 linesize=80 pagesize=40;
proc proto package =
sasuser.myfuncs.mathfun
label = "package of math functions";
link "link-library"; link "link-library";
int split(int x "number to split") label = "splitter function" kind=PRICING;
int cashflow(double amt, double rate, int periods, double * flows / iotype=O) label = "cash flow function" kind=PRICING;
run;
proc fcmp libname=sasuser.myfuncs;
array flows[20];
a = split(32);
put a;
b = cashflow(1000, .07, 20, flows);
put b;
put flows;
run;
int cashflow(double amt, double rate, int periods, double * flows / iotype=O) label = "cash flow function" kind=PRICING;