Jim,
Thanks for catching that mistake. It just goes to show that I
never call functions/procedures using DO ... WITH ... I
always use function call syntax.
>One minor correction, using the @ in a DO ... WITH line will cause a syntax error. Parms are passed by reference by default with DO ... WITH ...