MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Objects associated with a table

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
rajeev5174
Beginner


Joined: 05 Jun 2007
Posts: 25
Topics: 10

PostPosted: Wed Jun 06, 2012 12:19 pm    Post subject: Objects associated with a table Reply with quote

Hi ,
Please some one let me know for a table where we can get all the associated objects defined aganist that table. Can this informatio we get by querying the catlog tables?

Thanks,
Raj
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed Jun 06, 2012 12:57 pm    Post subject: Re: Objects associated with a table Reply with quote

rajeev5174 wrote:
Hi ,
Please some one let me know for a table where we can get all the associated objects defined aganist that table. Can this informatio we get by querying the catlog tables?

Thanks,
Raj


What do you mean associated OBJECTS? Do you mean parent child relationship tables? If so check this link

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dsnsqj12/G.10
Back to top
View user's profile Send private message Send e-mail Visit poster's website
NASCAR9
Intermediate


Joined: 08 Oct 2004
Posts: 274
Topics: 52
Location: California

PostPosted: Wed Jun 06, 2012 5:15 pm    Post subject: Reply with quote

I use this query.

Code:

SELECT B.BNAME,
       A.NAME,
       A.OWNER,
       A.COLLID,
       A.VERSION,
       A.VALID,
       A.OPERATIVE,
       A.TIMESTAMP,
       A.BINDTIME, 
       A.PKSIZE, 
       A.ISOLATION
 FROM SYSIBM.SYSPACKAGE A,
      SYSIBM.SYSPACKDEP B
 WHERE (A.COLLID=B.DCOLLID
   AND  A.NAME=B.DNAME
   AND  B.BNAME IN (YOUR TABLE)
   AND  B.BQUALIFIER='YOUR DATABASE'
   AND  B.BTYPE='T')
GROUP BY  B.BNAME,
          A.NAME,
          A.OWNER,
          A.COLLID,
          A.VERSION,
          A.VALID,
          A.OPERATIVE,
          A.TIMESTAMP,
          A.BINDTIME, 
          A.PKSIZE,
          A.ISOLATION
FOR FETCH ONLY WITH UR;

_________________
Thanks,
NASCAR9
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group