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 > Usage of Null Indicator for Pipe delimited file using DB2 Load Utility

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-22-11, 13:18
vivek122 vivek122 is offline
Registered User
 
Join Date: Aug 2011
Posts: 4
Usage of Null Indicator for Pipe delimited file using DB2 Load Utility

Hi ,

I have a pipe-delimited file which I load using the DB2 Load utility command , and some of the rows do not have values for the respective columns.

I am aware of the Null indicator that can be used in the DB2 Load command , but that applies only for ASCII files.

How can I implement the Null indicator for the pipe delimited files.

The load command that I am using is

LOAD FROM <filename> OF DEL MODIFIED BY COLDEL| REPLACE INTO <TBL_NM> NONRECOVERABLE


Thanks in advance ,
Vivek

Last edited by vivek122; 08-22-11 at 14:32.
Reply With Quote
  #2 (permalink)  
Old 08-23-11, 03:03
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
no problem - if column is allowed/created with NULL the load will continue and load a NULL for an empty or not specified column
you will only get errors if column was created with NOT NULL and not loading this column or loading an empty value
__________________
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

Tags
db2 9.7

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