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
 
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 How do you attach a DB2 plan to a CIC... John Poulakos DB2 0 Wed Apr 18, 2018 1:49 am
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 Finding the plan when code compiled u... Ahemad DB2 2 Fri Dec 01, 2017 6:38 pm
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

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