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

How to select the PLAN for a given table ex: FIRM_TABLE


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Tue Feb 10, 2009 3:10 pm
Reply with quote

Dear Experts,

My problem is to find the PLAN name for the given tablename with the help of SYSIBM.* tables

Below is the situation:
a) I don't have a DBA to contact for more details
b) No Co-workers on Mainframe platform (Distributes environment)
c) I have to run few jobs and then provide few report to my down-stream system

Please help me out in resoving this ASAP.

Looking for your reply on this.
Back to top
View user's profile Send private message
Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 295
Location: Singapore

PostPosted: Tue Feb 10, 2009 3:59 pm
Reply with quote

The following query provides the list of plans used by the table.

Code:
SELECT DNAME FROM SYSIBM.SYSPLANDEP WHERE BNAME = 'tbname';
Back to top
View user's profile Send private message
mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Tue Feb 10, 2009 4:46 pm
Reply with quote

Hi Srihari,

This query returns 0 rows.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Feb 10, 2009 5:10 pm
Reply with quote

mkk157 wrote:
Below is the situation:
a) I don't have a DBA to contact for more details
b) No Co-workers on Mainframe platform (Distributes environment)
Which planet do you work at?

P.S.: Pardon my rudeness if it is in any way...
Back to top
View user's profile Send private message
mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Tue Feb 10, 2009 7:42 pm
Reply with quote

Anuj,

I'm from INDIA
Back to top
View user's profile Send private message
mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Tue Feb 10, 2009 9:16 pm
Reply with quote

No Problem Anuj,
But, It happens sometimes. (Ex: My Case)
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Feb 11, 2009 1:38 am
Reply with quote

Hello,

Are you able to read the table using SPUFI?
Back to top
View user's profile Send private message
mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Wed Feb 11, 2009 11:49 am
Reply with quote

Dick,

SPUFI is not there.
But QMF is there I'm able to read the table.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Wed Feb 11, 2009 1:12 pm
Reply with quote

mkk157,

How about selecting this?
Code:
SELECT GRANTEE
  FROM SYSIBM.SYSTABAUTH
 WHERE TTNAME = 'your-table-name'
Back to top
View user's profile Send private message
mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Wed Feb 11, 2009 2:32 pm
Reply with quote

No Arcvns,

It didn't work.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Feb 11, 2009 2:40 pm
Reply with quote

let' s clear the terminology a bit...

rough approach on

the hierarchy is ... program ==> table
( a program accesses the table )

during the compilation process an entity is created to make DB2 aware of what is happening
program ==> dbrm ==> plan/package

so quering the db2 system tables with the relation plan/tables
will yeld nothing useful...

just all the plans that are accessing that table

what are You using to create the reports ???
a program, if so ask support on the documentation for that program

otherwise if You are using qmf no need for a specific plan
QMF has already built the sructure to access any db2 table
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 Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top