IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

getting the db2 plan name in runtime


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts current batch plan DB2 3
No new posts Insert System Runtime in HEADER In SY... SYNCSORT 9
No new posts Log an Plan name/id or Job Id using D... DB2 1
No new posts Usage/Utiliy of Plan in DB2 DB2 4
No new posts How do I define a DB2 plan for a web ... CICS 5
Search our Forums:

Back to Top