0

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.

2
  • Which platform are you running DB2 on? Commented May 7, 2013 at 19:12
  • It is running on Linux Machine Commented May 8, 2013 at 4:17

1 Answer 1

2

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
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.