Thanks Dan. That did the trick.
One a somewhat related note, what is the difference between creating the inline functions with a PERFORM, then doing a select on that inline function
versus
doing a select on the function between a begin; and end; block?