Gives an example of how to extend your rpg subprocedure to become a UDF
and then be used by SQL but the rpg may be a bit simplistic. For example,
123.45 would not be numeric. Just adding a period to the check string may
not be sufficient for the example another poster gave: 123.156.121.45 or
some such thing. That's 'numeric' enough for an IP address but not
numeric for mathematical functions.
Rob Berendt