Hello,
SAS Version: 9.4 M5
I have tried to use the function FINANCE 'ppmt' with 0 interest rate but I have received the following warning:
"NOTE: Argument 2 to function FINANCE('PPMT',0,2,120,1000000,0,0) at line 37 column 14 is invalid."
I have used the same parameters in PPMT function and it works. The code I used is below and the result I was expecting from FINANCE ppmt is -8333.33.
data test2; temp_finance=finance('PPMT',0,2,120,1000000,0,0); ===> . temp_ppm=ppmt(0,2,120,1000000,0,0); ===>8333.333 run;
data test1; temp_finance=finance('PPMT',0.08,2,120,1000000,0,0); ===> -8.42762968 temp_ppm=ppmt(0.08,2,120,1000000,0,0); ===> 8.4276296798 run;
A similar issue has been raised for FINANCE 'pv' (Solved: Invalid argument to function FINANCE 'pv' with 0 interest rate - SAS Support Communities) and it looks like a bug.
Regards,
smm662002
... View more