Hello,
I want to have a UDF that checks if the input user_id exists in users table, if exists then return the user_id, otherwise return a default id. The logic is simple, but we will use it in a lot of places that is why I think of a UDF.
DBA told me a simple UDF cannot do this, an advanced UDF written in cobol can do this, but he cannot help because cobol is out of his jurisdiction.
So I am just curious about what's the difference between a simple UDF and an advanced UDF, what language the simple UDF can use?
More curiousity is that if we provide a cobol program, how difficult (what steps) to make it as a UDF?
We are using DB2 UDB 8.2 z/os
Thanks,
Jinse