>At first, I thought the problem was with the WAIT WINDOW, and that the WAIT WINDOW would give similar errors with other functions that have zero parameters, but it is difficult to find one, that also returns a character expression. With a UDF() with no parameter, it works without a problem.
It's TIMEOUT clause.
--sb--