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 insert data into CLOB/BLOB field

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-04-09, 08:13
Neharao Neharao is offline
Registered User
 
Join Date: Dec 2007
Posts: 49
How to insert data into CLOB/BLOB field

Hi All
I would like to know, how to insert data (A Word Doc, XLS sheet) into a column which is declared as CLOB/BLOB on Z/oS.

We have a DB2 in Mainframe that has a column defined to support Large Objects. Would like a Script that would enable us to upload a WORD DOCUMENT or XLS or PPT etc. to the table.

Thanks in Anticipation
Neha
Reply With Quote
  #2 (permalink)  
Old 05-05-09, 07:54
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
There is nothing special about LOBs. Just use a regular INSERT statement for that.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 05-05-09, 11:51
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
you can do this with import and replace the lob value by the path to the file to be loaded in the lob-col
import ... modified by lobsinfile ... has to be used for this
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
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