| The FCMP Procedure |
| Procedure features: |
|
This example shows how to use PROC FCMP to create and store CALL routines and functions.
| Program |
| |
proc fcmp outlib = sasuser.exsubs.pkt1; |
| |
subroutine calc_years(maturity, current_date, years);
outargs years;
years = (maturity - current_date) / 365.25;
endsub; |
| |
return (garkhprc); endsub; |
| |
run; |
| SAS Log |
NOTE: Function garkhprc saved to sasuser.exsubs.pkt1. NOTE: Function calc_years saved to sasuser.exsubs.pkt1.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.