Just a sidenote. All of this is great, but according to Deb Cassidy's presentation yesterday at CinSUG, SAS 9.1 will have the commands GEOMEAN and HARMEAN already built in!