473,480 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

DB2 7.2 Z/OS - Functions - Where's the Function source text stored

wfs
Hi All,

I've defined a few functions to DB2.

I can see the entries in SYSIBM.SYSROUTINES - but where is the source
text stored.

I want to reverse engineer the definitions.
Thanks

Bill
Nov 12 '05 #1
6 4525
wfs wrote:
Hi All,

I've defined a few functions to DB2.
Functions with LANGUAGE SQL or an external programming language like C/C++
or Java?

For language SQL functions you might want to look at SYSCAT.ROUTINES.TEXT.
I can see the entries in SYSIBM.SYSROUTINES - but where is the source
text stored.
You should not use the internal, undocumented tables but rather the catalog
view SYSCAT.ROUTINES. The reason being that the internal tables might
change at any time - the external interface is much more stable.
I want to reverse engineer the definitions.
Thanks

Bill


--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #2
wfs
Thanks

Bill

(I'll check it out when I'm back at work)
"Knut Stolze" <st****@de.ibm.com> wrote in message
news:cp**********@fsuj29.rz.uni-jena.de...
wfs wrote:
Hi All,

I've defined a few functions to DB2.


Functions with LANGUAGE SQL or an external programming language like C/C++
or Java?

For language SQL functions you might want to look at SYSCAT.ROUTINES.TEXT.
I can see the entries in SYSIBM.SYSROUTINES - but where is the source
text stored.


You should not use the internal, undocumented tables but rather the
catalog
view SYSCAT.ROUTINES. The reason being that the internal tables might
change at any time - the external interface is much more stable.
I want to reverse engineer the definitions.
Thanks

Bill


--
Knut Stolze
Information Integration
IBM Germany / University of Jena

Nov 12 '05 #3
wfs wrote:
Thanks

Bill

(I'll check it out when I'm back at work)


Oops, I just saw that you're on z/OS - things might be different there.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #4
On 2004-12-17, Knut Stolze scribbled:
wfs wrote:
Thanks

Bill

(I'll check it out when I'm back at work)


Oops, I just saw that you're on z/OS - things might be different
there.


I've got access to a DB2 z/OS instance (v7.1.1), and from what I can
see the catalog tables are considerably different to UDB:

* The SYSCAT schema doesn't exist (well, I can see one, but there's
only one table in it called PROCEDURES).
* In the SYSIBM schema, there is a SYSROUTINES tables but I can't see
any columns which contain the source text (there's things like
JAVA_SIGNATURE, PARM_SIGNATURE, lots of PARMn columns, REMARKS, RUNOPTS
and EXTERNAL_NAME, but no TEXT column).

I've had a look at some of the other tables in the SYSIBM schema
(unfortunately I don't have SELECT access on all of them), but I think
you might be out of luck on this one.

Dave.
--
Cogito cogito ergo cogito sum
-- Ambrose Bierce
Nov 12 '05 #5
wfs
Hi All,

The procedure definition doesn't appear to be stored in
SYSIBM.SYSROUTINES, just parts of the definition.

If I use BMC, it displays the function as I defined it.
CREATE FUNCTION AAA.WFS_S_1
(X FLOAT)
RETURNS SYSIBM.DOUBLE
SPECIFIC AA.WFS_S_1
LANGUAGE SQL
DETERMINISTIC
CALLED ON NULL INPUT
CONTAINS SQL
EXTERNAL ACTION
RETURN
SIN(X)/COS(X)

Maybe I'll count all the rows in all catalog tables, create a new
function, count all rows again, and see which ones have changed.....
Bill
"Dave Hughes" <da*********@waveform.plus.com> wrote in message
news:xn****************@usenet.plus.net...
On 2004-12-17, Knut Stolze scribbled:
wfs wrote:
Thanks

Bill

(I'll check it out when I'm back at work)


Oops, I just saw that you're on z/OS - things might be different
there.


I've got access to a DB2 z/OS instance (v7.1.1), and from what I can
see the catalog tables are considerably different to UDB:

* The SYSCAT schema doesn't exist (well, I can see one, but there's
only one table in it called PROCEDURES).
* In the SYSIBM schema, there is a SYSROUTINES tables but I can't see
any columns which contain the source text (there's things like
JAVA_SIGNATURE, PARM_SIGNATURE, lots of PARMn columns, REMARKS, RUNOPTS
and EXTERNAL_NAME, but no TEXT column).

I've had a look at some of the other tables in the SYSIBM schema
(unfortunately I don't have SELECT access on all of them), but I think
you might be out of luck on this one.

Dave.
--
Cogito cogito ergo cogito sum
-- Ambrose Bierce

Nov 12 '05 #6
Hello,

in DB2 z/OS V7.1 there are two additional catalog tables containing the
information you are looking for:

SYSIBM.SYSROUTINES_SRC
SYSIBM.SYSROUTINES_OPTS

If you can't find them, your system is not V7.1, or your system admin did
not the complete installation/migration.

Cheers - Walter.
"wfs" <wf**@optonline.net> schrieb im Newsbeitrag
news:ko*****************@fe11.lga...
Hi All,

I've defined a few functions to DB2.

I can see the entries in SYSIBM.SYSROUTINES - but where is the source
text stored.

I want to reverse engineer the definitions.
Thanks

Bill

Nov 12 '05 #7

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

Similar topics

99
5812
by: David MacQuigg | last post by:
I'm not getting any feedback on the most important benefit in my proposed "Ideas for Python 3" thread - the unification of methods and functions. Perhaps it was buried among too many other less...
0
2326
by: Anthony Baxter | last post by:
To go along with the 2.4a3 release, here's an updated version of the decorator PEP. It describes the state of decorators as they are in 2.4a3. PEP: 318 Title: Decorators for Functions and...
5
2652
by: Sue | last post by:
After finishing up my first quarter JavaScript on 12/12/03, I decided to improve character checking on my project. In my project I only had to do very basic validation. Therefore, I only had one...
7
2250
by: BlueDragon | last post by:
The place where I work is moving to MS SQL Server from Lotus Notes. I have done a lot of coding in Lotus Notes, and have, I suppose, intermediate skills in basic SQL -- queries, insert, updates,...
11
1320
by: Martin Johansen | last post by:
take the function: char f(){ return(-1); } f is the function pointer, i know how it is used to call a function. But, what exactly does the pointer point to? Where is the return value...
9
5035
by: Mikhail Teterin | last post by:
Hello! I'd like to have a variable of a pointer-to-function type. The two possible values are of type (*)(FILE *) and (*)(void *). For example: getter = straight ? fgetc : gzgetc; nextchar...
14
1638
by: Alan Silver | last post by:
Hello, I have spent ages trawling through Google, looking for information about global functions in ASP.NET and I'm still not clear about the best way to go about this (or not). I am writing...
36
2981
by: Liam.M | last post by:
hey guys, I have one last problem to fix, and then my database is essentially done...I would therefore very much appreciate any assistance anyone would be able to provide me with. Currently I...
3
2310
by: Lauren Quantrell | last post by:
I use the code below to generate a text file containing every stored procedure and view in my SQL Server backend database, but I can't figure out how to generate text of the User Defined Functions....
0
7055
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7061
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,...
1
6763
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...
0
7030
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...
1
4799
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...
0
3011
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
574
muto222
php
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.