If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > how to write data from stored procedure to a file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-18-06, 03:37
mn_sudeep mn_sudeep is offline
Registered User
 
Join Date: Jan 2006
Posts: 1
how to write data from stored procedure to a file

hi
i have written a stored procedure in db2 v 8.2 using SQL. now i write the data into a temporary table in the data base. i want to write it into a file. how to do this in the stored procedure? can anyone help me?
thanks in advance
sued
Reply With Quote
  #2 (permalink)  
Old 01-18-06, 04:21
ritz ritz is offline
Registered User
 
Join Date: Jan 2005
Posts: 35
Hi,

One way you could achieve this would be writing a user defined function in LANGUAGE C and then invoke this function in your SQL procedure.

HTH
Ritz
Reply With Quote
  #3 (permalink)  
Old 01-18-06, 05:30
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
You can find an example at
http://www-128.ibm.com/developerwork...0302izuha.html

Using a Java UDF is another option

HTH

Sathyaram

Quote:
Originally Posted by ritz
Hi,

One way you could achieve this would be writing a user defined function in LANGUAGE C and then invoke this function in your SQL procedure.

HTH
Ritz
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On