• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to read DB2 session tables

 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic