Every now and then you find a gem stuffed way back in the back of the forums. I came across this one and since it solves a problem that I've seen asked more than once I thought I'd post it here for all to see. This was original posted by Mike Smith of IBM. Many thanks to Mike for this informative post.
For those of you who read the entire thread, I do have confirmation from IBM that the problem pointed out near the bottom of the thread is fixed in the latest beta.
The reminder of the post gives the functions and two code examples to help you pull the information (in this case names and catalog information) from the DB2 instance.