This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to read DB2 session tables

 
Sivaraman Lakshmanan
Ranch Hand
Posts: 231
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

My application connects to DB2 installed in mainframe to process some date based on the inputs given. The mainframe programme does the processing and will store the results in DB2 global session tables. Then I will invoke a DB2 stored procedure which will read this session table for further processing and gives the final result.

The problem here is most of the time I am not very sure what data is there in the DB2 session tables. Is there any way to read this session tables from java? for example if the session table name is DATA_SESS_TBL, if I try to query this table like "select * from DATA_SESS_TBL" I am getting an error saying that so such table exist

Any help on this is appreciated.

Regards,
Sivaraman.L
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sivaraman,
You need to include the schema name of the table. I think it is SYSCAT. I'm not positive off the top of my head, so you should verify the schema name by looking at your db2 tables.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic