Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / July 2006

Tip: Looking for answers? Try searching our database.

Finding dependencies in stored procedures

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Praveen_db2 - 24 Jul 2006 16:38 GMT
Hi All
DB2 8.1.3, Windows

Is there any method to find the routines dependant on any particular
routine.
Say,  I have a stored procedure PROC1 which calls 2 stored procedures and
is called by 3 stored procedures.
Is there any method to find the names or atleast packages of these stored
procedures which are called by PROC1 and are calling PROC1?
Is something there in SYSCAT.ROUTINEDEP or SYSCAT.PACKAGEDEP which can be
manipulated for this?

Regards
Praveen
Serge Rielau - 24 Jul 2006 17:09 GMT
> Hi All
> DB2 8.1.3, Windows
[quoted text clipped - 7 lines]
> Is something there in SYSCAT.ROUTINEDEP or SYSCAT.PACKAGEDEP which can be
> manipulated for this?
What are you missing? These two views should do the job as is.

Signature

Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

IOD Conference
http://www.ibm.com/software/data/ondemandbusiness/conf2006/

jefftyzzer - 24 Jul 2006 19:08 GMT
This may get you a little further with respect to the SP + Package
relationship:

SELECT
    R.ROUTINESCHEMA,
    R.ROUTINENAME,
    P.PKGNAME
FROM
    SYSCAT.ROUTINES R,
    SYSCAT.ROUTINEDEP RD,
    SYSCAT.PACKAGES P
WHERE
    R.ROUTINESCHEMA = RD.ROUTINESCHEMA
AND
    R.SPECIFICNAME = RD.ROUTINENAME
AND
    RD.BNAME = P.PKGNAME
ORDER BY
    1,
    2;

> Hi All
> DB2 8.1.3, Windows
[quoted text clipped - 10 lines]
> Regards
> Praveen
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.