Meaningless Drivel is fun!*
The moose likes JDBC and the fly likes How to read DB2 session tables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to read DB2 session tables" Watch "How to read DB2 session tables" New topic
Author

How to read DB2 session tables

Sivaraman Lakshmanan
Ranch Hand

Joined: Aug 02, 2003
Posts: 231
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


Regards,
Sivaraman.L
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30138
    
150

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to read DB2 session tables
 
Similar Threads
quick question on DB2 JDBC encoding
please help urgently ...strange error
Performance problem in jdbc
java DB2 program
UnsatisfiedLinkError