The most direct way is found in SAS/IML, using the quad() built-in call. What type of integral are you trying to evaluate? The quad() call uses and adaptive Romberg integration strategy to evaluate one-dimensional integrals over arbitray piece-wise connected and also infinite and semi-infinite intervals.
Not too many months ago I advised a banking customer about calculating integrals with the quad() function,and I think they were using it for something related to Basel 2, although I don't remember all the specifics.
2025 SAS Hackathon: There is still time!
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!