NicC wrote:How about just putting the table name into a variable just as you are about to execute the query?
NicC wrote:Well, then. Post in the DB2 section not the COBOL section.
NicC wrote:Well, I gave you a COBOL answer but you say you want a DB2 answer - maybe accessed using COBOL but that is a by-the-bye as it could be accessed by any language that has an interface to DB2. You want to know if DB2 keeps such a thing - probably not - but if it did the answer is a DB2 answer so it is more relevant to that section so that anyone wanting that information, but using a different language, should be able to find it.