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
 

 

How to get the plan name in the runtime

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

New User


Joined: 07 Jul 2010
Posts: 9
Location: India

PostPosted: Tue Mar 08, 2011 10:37 pm    Post subject: How to get the plan name in the runtime
Reply with quote

Hi,

Could anyone please tell me how to find the plan name during the runtime.

I am running a DB2 proc using a work load manager. I need to know which plan/database is being used.
Back to top
View user's profile Send private message

Pons

New User


Joined: 25 May 2007
Posts: 61
Location: Coimbatore

PostPosted: Tue Mar 08, 2011 11:30 pm    Post subject: Reply to: How to get the plan name in the runtime
Reply with quote

Guess, this is realted to DB2 question. But this is an COBOL forum...
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Mar 09, 2011 12:51 am    Post subject:
Reply with quote

Hello and welcome to the forum,

Just curious - why does someone believe this is needed at runtime?
Back to top
View user's profile Send private message
Kiran Chava

New User


Joined: 07 Jul 2010
Posts: 9
Location: India

PostPosted: Wed Mar 09, 2011 8:58 am    Post subject: Reply to: How to get the plan name in the runtime
Reply with quote

We have to write the database name to a file which we will be sending to a datawarehousing application. We cant use a parm to get this info as this is being run thru a WLM.

I am running a DB2 proc using a work load manager. I need to know which plan/database is being used.

It would be fine even if I get the WLM name. I can derive the database name from that.
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 650
Location: Whitby, ON, Canada

PostPosted: Wed Mar 09, 2011 6:25 pm    Post subject:
Reply with quote

Have you investigated the DB2 special registers? CURRENT SCHEMA, CURRENT PACKAGESET etc. Check the SQL reference manual, one of them might be what you are looking for.
Back to top
View user's profile Send private message
Kiran Chava

New User


Joined: 07 Jul 2010
Posts: 9
Location: India

PostPosted: Wed Mar 09, 2011 8:14 pm    Post subject: Reply to: How to get the plan name in the runtime
Reply with quote

Thanks don.leahy the PACKAGESET has worked for me. I got the collid and based on that I derived the Database name.
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 Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am
No new posts Program and its corresponding plan vickey_dw DB2 4 Thu Apr 07, 2016 9:27 pm
No new posts Should we Rebind Plan if no SQL changes sappy_mf DB2 2 Thu Mar 03, 2016 2:13 pm
No new posts What's plan, package, bind ? jackzhang75 DB2 2 Sun Feb 28, 2016 7:29 pm
No new posts DB2 plan for DSNTEP2 / DSNTEP4 Mainak_Dalal DB2 3 Thu Jan 21, 2016 1:08 am


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