473,756 Members | 2,652 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DB2 AIX: Stored Procedure Dependency Script

ARK
Some stored procedures call other stored procedures. When moving
stored procedures as part of a release this requires that you create
the children procedures before the calling procedures.

Is there a tool, script, or some other way to determine the dependency
list?

May 24 '06 #1
1 1865
ARK
I hate to answer my own question as I thought it was more difficult
than this:

select R.ROUTINESCHEMA , R.ROUTINENAME AS SPECIFICNAME, X.ROUTINENAME,
rtrim(
p.bschema) || '.' || P.bname as DEPON
from syscat.PACKAGED EP P, syscat.ROUTINED EP R, syscat.routines X
where P.bschema = 'yourschema'
and p.btype = 'F'
and P.PKGNAME = R.BNAME
and P.PKGSCHEMA = R.ROUTINESCHEMA
and R.BTYPE = 'K'
and R.ROUTINENAME = X.specificname
and R.ROUTINESCHEMA = X.ROUTINESCHEMA
and X.valid = 'Y'
and X.routinetype = 'P'
and p.bschema||P.bn ame in (
Select Z.ROUTINESCHEMA ||Z.specificnam e
from syscat.routines Z
where Z.routinetype = 'P'
group by Z.ROUTINESCHEMA , Z.specificname )
order by R.ROUTINESCHEMA , R.ROUTINENAME;

May 24 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
9011
by: Bill Kellaway | last post by:
Hi there - this should be fairly simple for someone. Basically I can't figure out how to pass the parameters from ASP to a Stored Procedure on SQL. Here's my code: I just need to help in learning how to pass these varibables from ASP to the SP.
4
4400
by: Nyul | last post by:
Gurus, I have a verb big problem which I'm unable to explain. We have a DB2 V6.1.0 on AIX 4.3 I want to make a C stored procedure which at the end will be called by a PHP script. The development server was an UDB V6.1.0 on W2K. Everything went well. I was able to call the stored proc from C and from Delphi.
1
2607
by: Sampath Reddy | last post by:
Hi Everybody, We are using UDB v8.1 I will explain about my Stored procedures which we are executing in UDB AIX box. We have 3 millions(apporox) of data in 22 tables. By applying the business logic through Stored procedures on 22 tables and writing into 3 new tables. We have used all temporary tables except starting 22 tables. The Stored procedures we have used nearly 6 temporary tables to handle the business logic. Finally we are loading...
6
2139
by: chrisg | last post by:
I have installed (what I thought was) DB2 7.2 FP5 (as my starting point, it was 7.2 with FP5 applied) on my AIX 4.3.3 boxes. This is what I get. # lslpp -L | grep db2 db2_07_01.cj 7.1.0.65 C Java Common files db2_07_01.client 7.1.0.65 C Client Application Enabler db2_07_01.cnvucs 7.1.0.65 C Code Page Conversion Tables -
2
2354
by: ARK | last post by:
Database: DB2 AIX V8.* Question: I want to be able to get the 'Client login ID' aka 'Execution ID' (as opposed to the authid or application_id) for the current connection within a stored procedure and without requiring SYSADM, SYSCTRL, SYSMAINT, or SYSMON authority. This would be for audit purposes as several different people can share an authid. Obviously I can create a stored procedure to do the SQL below and then grant execute to...
0
3492
by: istruttorenuoto | last post by:
hi! I have some problems to call a stored procedure from an Unix Script. Here's the script stty istrip stty erase ^H export ORACLE_BASE=/product/oracle export ORACLE_HOME=$ORACLE_BASE/product/9.2.6 export PATH=$ORACLE_HOME/bin:/usr/ccs/bin:/bin:/usr/bin:/usr/local/bin:/usr/ucb
1
3184
by: jmalone | last post by:
I have a python script that I need to freeze on AIX 5.1 (customer has AIX and does not want to install Python). The python script is pretty simple (the only things it imports are sys and socket). The README file in the Tools/freeze directory of the Python-2.4.4 distribution says the following (and many other things): Previous versions of Freeze used a pretty simple-minded algorithm to
1
1408
by: dherbstemail-ng | last post by:
I can get the SQL Server 2005 CommandNotification cache dependency to work with inline SQL. It works in a SqlDataSource as well as with the page OutputCache when making ADO.NET calls. Next I copy/paste the exact same inline SQL into a stored procedure wrapper and switch my SqlDataSource or ADO.NET code to call the stored procedure. Now the cache is no longer refreshed after data in the query results has been changed. Has anyone been...
7
1602
by: Mark B | last post by:
How do I have a SiteMap based on the output of a stored procedure? (I want to pass a @LanguageCode parameter to it so it will display the top Menu in the appropriate language).
0
10031
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9838
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9708
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8709
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7242
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5140
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5302
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3354
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.