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
 

 

getting the db2 plan name in runtime

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

New User


Joined: 05 Sep 2007
Posts: 3
Location: Israel

PostPosted: Fri Sep 07, 2007 7:44 pm    Post subject: getting the db2 plan name in runtime
Reply with quote

Hi!

I'm trying to find a way of getting the plan name I'm running with.

for example in db2 v8 NFM, i can do the following
GETVARIABLE(SYSIBM.PLAN_NAME)

i need to get the same result (the name of the plan) in db2 v7.

Thank in advance,
Back to top
View user's profile Send private message

Prasanthhere

Active User


Joined: 03 Aug 2005
Posts: 306

PostPosted: Mon Sep 10, 2007 11:32 am    Post subject: Reply to: getting the db2 plan name in runtime
Reply with quote

Hi,

Do you have the access to run SYSIBM.SYSPLAN,if so try this in QMF or SPUFI

Select * from SYSINM.SYSPLAN where name like 'plan name%'

If you don't have any idea abt plan then try for a

SELECT * FROM SYSINM.SYSPLAN
Back to top
View user's profile Send private message
HananMilman

New User


Joined: 05 Sep 2007
Posts: 3
Location: Israel

PostPosted: Mon Sep 10, 2007 1:15 pm    Post subject: Reply to: getting the db2 plan name in runtime
Reply with quote

The problim is finding the plan name in RUNTIME.

for example :

DSN SYSTEM(db27)
RUN(PROG1) PLAN(PLAN01)
END

How prog1 can know that the plan it's running with is PLAN01 ?
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