I am trying to create a wrapper function to allow me to get the next value for any sequence

I would like to pass a sequence name into the function, and return the next value.

It looks like DB2 does not allow use of NEXT VALUE FOR syntax in a CREATE FUNCTION statement, even for a hardcoded sequence name (job log message indicates this)

The CREATE statement fails with an error complaining about the syntax....