Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Reading a GTT define in Subroutine, called from a Stored Pro

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Keanehelp

New User


Joined: 27 May 2008
Posts: 71
Location: USA, CA.

PostPosted: Fri Apr 27, 2012 2:01 pm    Post subject: Reading a GTT define in Subroutine, called from a Stored Pro
Reply with quote

Hi,

I have a Stored Procedure AAA .
SP AAAA calls a subroutine BBB.
Subroutine BBB has a global temporary table, which gets inserted when BBB is called.
I want to read this table from a cursor in AAA.


I am not sure How I am going to do this, any suggestions?
Back to top
View user's profile Send private message

sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Fri Apr 27, 2012 9:32 pm    Post subject:
Reply with quote

Hi Nitin,

By defination of GTT that is not possible, i think.

Quote:
DECLARE GLOBAL TEMPORARY TABLE statement does not put a description of the table in catalog table SYSTABLES. The table description is not persistent beyond the life of the application process that issued
the DECLARE statement and the description is known only to that
application process. Thus, each application process could have its
own possibly unique description of the same table.


Try Goooooooogling "db2 stored procedure return resultset"

Thanks,
Sushanth
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How do I define a DB2 plan for a web ... John Poulakos CICS 5 Sat Apr 14, 2018 1:58 am
No new posts CICS called and calling program rizwanaccy CICS 1 Thu Feb 01, 2018 4:34 pm
No new posts define object with CCSID = 500 Pedro DB2 0 Thu Feb 01, 2018 4:51 am
No new posts attchmvs from rexx subroutine that re... harisukumaran CLIST & REXX 1 Fri Jan 19, 2018 5:29 am
No new posts CICS web service from DB2 Triggers or... kiranprasad DB2 2 Wed Dec 20, 2017 11:10 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us