473,325 Members | 2,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Temp tables and UDFs and multiple subsystems


Good Evening All,

I am working on a program that well need to get data via a UDF from
multiple DB2 subsystems then make make some updates to the date and
then do a "select col1 from SESSION.tmp group by col1".

I have the program working for one subbsystem, but then I run into a
problem in how do I get the data from another subsystem? I am using a
declared global temporary table so if I try and connect to another
subsystem I loose my table. What would solve my problem being able to
call the UDF using a 3 part name, but I don't think that is supported.

The reason that I am using the temp table is that multiple people can
call the program at the same time, so I did that so each call would
have it's own copy of the table.

Any help would be great!

Thanks,
Doug

Nov 12 '05 #1
4 1409
do*****@kc.rr.com wrote:
Good Evening All,

I am working on a program that well need to get data via a UDF from
multiple DB2 subsystems then make make some updates to the date and
then do a "select col1 from SESSION.tmp group by col1".

I have the program working for one subbsystem, but then I run into a
problem in how do I get the data from another subsystem? I am using a
declared global temporary table so if I try and connect to another
subsystem I loose my table. What would solve my problem being able to
call the UDF using a 3 part name, but I don't think that is supported.

The reason that I am using the temp table is that multiple people can
call the program at the same time, so I did that so each call would
have it's own copy of the table.

Any help would be great!

Thanks,
Doug

Insteda of using a DGTT you could use a "cookie" i.e. you could use a
regular table with a column that privatizes the content.
Then use a sequence or soem other technique to generate private values.

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #2
how about using nicknames so that you can access all data through one
database?

Nov 12 '05 #3

I am not sure what you mean by nicknames. Can you explain a little
more?

Thanks,
Doug

Nov 12 '05 #4

Serge,

This might be what I end up doing. I was just trying to keep DB2 from
externalizing the data and keep it from loging. It seems wastefull to
write out all that data to dasd and to the logs just to turn around and
delete all of it. Each subsystem can return 37,000+ rows of data, so
we are not talking a lot of data to DB2 but still I want it to make
best use of the envirotment.

Thanks,
Doug

Nov 12 '05 #5

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

Similar topics

2
by: Tim Pascoe | last post by:
I'm relatively new to SQL-Server, and I have a quick question about temporary tables. I am using a function from Erland Sommarskog's excellent article about arrays in SQL server. Erland's...
4
by: Chris Geihsler | last post by:
I have a set of udf's dealing that return a one column table of values parsed from a comma delimeted string. For example: CREATE FUNCTION . ( @patient_list varchar(2000) ) RETURNS...
3
by: Subodh | last post by:
I've written a SP which does some complex calculations and in the end dumps data into 2 tables (master & detail) When I run this sp for smaller no of IDS (employees i.e for 13000 in Master and...
4
by: Pete H | last post by:
Hi All; I'm trying to get some of the samples that are amply illustrated in multiple docs to work. When I try to create a Warehouse Center view "...for MQ Series messages" or use the UDF wizard in...
7
by: Rhino | last post by:
I am updating some Java UDFs from DB2GENERAL to DB2JAVA as suggested in the manuals for DB2 Version 8 but I'm having problems with setSQLstate() and setSQLmessage(). If I'm reading the manuals...
17
by: Jon Ole Hedne | last post by:
I have worked on this problem some hours now (read many-many...), and I can't solve it: In vba-code I create a table with Connection.Execute, and add some data to it. This table is saved in the...
9
by: BillCo | last post by:
I have a function which clears out a temporary table and then fills it with values from a recordset. One of the table fields is indexed with no duplicates. Very rarely - almost enough to ignore it...
0
by: sethwai | last post by:
Hi, A friend of mine inheritted a system that had 2 4k temp tablespaces each assigned to a different bufferpool. This brought up a number of questions for me. 1) Does anyone know in general...
2
by: kizmar | last post by:
You'll have to excuse me as I'm familiar with T-SQL (SQL Server), not so much DB2 when creating stored procedures... I'm trying to create a procedure where I build multiple temp tables (DECLARE...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.