In reply to Luciano.

Yes, you can do that in SAS by using PROC KDE. See the example in the following article: "The Difference of Density Estimates"