Unix Technical Forum

Load global temporary table

This is a discussion on Load global temporary table within the DB2 forums, part of the Database Server Software category; --> Hi all, I have a fixedwidth .DAT file and a DB2 table, I have to create a flat file ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 05:44 AM
vijay_dwi@yahoo.com
 
Posts: n/a
Default Load global temporary table

Hi all,

I have a fixedwidth .DAT file and a DB2 table, I have to create a flat
file by pulling data from both file and DB2 table. I tried using
IMPORT/LOAD utilities to load to a global temporary table and thought
of joining it and extracting, but IMPORT/LOAD are not allowed on
temporary table.
Can you please suggest me how to go about it...

thanks in advance,
kore

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 05:44 AM
Brian Tkatch
 
Posts: n/a
Default Re: Load global temporary table

Can you Import it to a real TABLE, and then export with a join?

B.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 05:44 AM
vijay_dwi@yahoo.com
 
Posts: n/a
Default Re: Load global temporary table

As per my requirements I am not supposed to use a real table. Please
suggest me.....

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-27-2008, 05:44 AM
Knut Stolze
 
Posts: n/a
Default Re: Load global temporary table

vijay_dwi@yahoo.com wrote:

> As per my requirements I am not supposed to use a real table. Please
> suggest me.....


Why not a real base table? School exercise? Then maybe the goal is to
figure out that it doesn't work that way?

You could do all kinds of things to avoid a base table:
(1) do not use import but rather some other means to access and read the
file, for example a table function
(2) like (1), but use a federated wrapper
(3) You could try a stored procedure that does the import into the temp
table

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:14 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com