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 > Convert BLOB to CLOB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-04-08, 06:52
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Convert BLOB to CLOB

Hi,
on db2 v9 zOS I would like to convert BLOB data to CLOB data. I see this is some kind possible using UDF, but is there any more simple way of doing it?
Regards,
Grofaty
Reply With Quote
  #2 (permalink)  
Old 12-04-08, 08:15
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
I think the UDF method is the only way, at least for now. In DB2 9.5 you could CAST between BLOB and CLOB types.
Reply With Quote
  #3 (permalink)  
Old 12-04-08, 08:16
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,
can you please provide any sample for v9.5 for cast?
Regards,
Grofaty
Reply With Quote
  #4 (permalink)  
Old 12-04-08, 08:55
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Good question. I can cast from CLOB to BLOB (nothing new there), but a cast from BLOB to CLOB doesn't work on V9.5.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development

Last edited by stolze; 12-04-08 at 09:14.
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