In Oracle DB, we can get the definition of PLSQL procedures and function (Like argument, its order and datatypes) from the table USER_ARGUMENTS. I am looking for a similar source of data in case of DB2.
1 Answer
I'm assuming you're on DB2 for Linux/Unix/Windows here.
Try looking at the SYSCAT.ROUTINEPARMS catalog view. Probably something like:
SELECT *
FROM SYSCAT.ROUTINEPARMS
WHERE ROUTINESCHEMA = @schema
AND ROUTINENAME = @name
ORDER BY ORDINAL