Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

GTT declared in one CICS pgm and used in another CICS pgm

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
sasanka
Warnings : 1

New User


Joined: 18 Jan 2008
Posts: 34
Location: India

PostPosted: Sun May 01, 2011 4:08 pm    Post subject: GTT declared in one CICS pgm and used in another CICS pgm
Reply with quote

Hi,

We have a CICS program PGM1 which calls another CICS program PGM1 by using LINK (or XCTL). In program PGM1, we declare a GTT (Global Temporary Table) and populate that GTT. Now we want to use that GTT in the program PGM2. So my question is do we use a GTT declared and populate in one CICS program and used in another CICS program which is called by either LINK or XCTL.
Back to top
View user's profile Send private message

Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Sun May 01, 2011 7:27 pm    Post subject: Reply to: GTT declared in one CICS pgm and used in another C
Reply with quote

Are you referring to a TSQ?

Bill
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Sun May 01, 2011 7:44 pm    Post subject:
Reply with quote

i believe a declared tt exists for life of the task in which it was declared.

this is a db2 question, not a cics question.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Sun May 01, 2011 9:13 pm    Post subject: Reply to: GTT declared in one CICS pgm and used in another C
Reply with quote

Thanks Dick, bad interpretation on my part.... icon_wink.gif

Bill
Back to top
View user's profile Send private message
Eshwar CICS

New User


Joined: 18 May 2011
Posts: 47
Location: India

PostPosted: Mon Jun 27, 2011 2:23 pm    Post subject: Reply to: GTT declared in one CICS pgm and used in another C
Reply with quote

Yes..the GTT can be accessed in LINKed/XCTLed program...no need to declare it again....But when you use GTT there are few things which hamper the performance ,

1.The work done by DB2 pre compiler during compiling process is skipped and that work is done at run-time.

2.GTT occupies DB2 space which resides outside of CICS system, so there is an overhead to access the details from GTT. Better use different facilities provided by CICS to transfer data between programs.
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm
No new posts CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Getting -504 Cursor Name GTT-ARTS-CUR... Robin Sulsona DB2 2 Fri Mar 17, 2017 1:43 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us