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 > db2 export utility

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-27-10, 05:25
shahnazurs shahnazurs is offline
Registered User
 
Join Date: May 2005
Posts: 25
db2 export utility

Hi.
I searched most of the URL about my error, but I didn't find what I expected.

I am using AIX Ksh to write a script to export data from table, while exporting I get error like

SQL3100W Column number "1" (identified as "1") in the output DEL format file
is longer than 254 bytes.

In my SQL file, I used || (concatination for many columns, it might go beyond 254 also)...

I need only in DEL format, if I go for IXF format then whether this is readble by Notepad or any other tool.

Whether such error can be avoided or this is a serious error....

Inspite of either above two, how can I avoid it ?

And also I used function to truncate i.e. cast sme columns, I get the following error too...
SQL3015N An SQL error "445" occurred during processing.

SQL0445W Value "-000000877.00" has been truncated. SQLSTATE=01004


Kindly tell me whether all can be avoided ?

Thanks,
Shahnaz.
Reply With Quote
  #2 (permalink)  
Old 01-27-10, 09:56
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Use the SUBSTR function to do the truncation.

Andy
Reply With Quote
  #3 (permalink)  
Old 01-27-10, 15:02
MarkhamDBA MarkhamDBA is offline
Registered User
 
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
this is a warning, not an error:
SQL3100W
Column number column-number (identified as name) in the output DEL format file is longer than 254 bytes.

Explanation
The length or maximum length of the specified output column is greater than 254 bytes. Columns larger than 254 are not supported by some other products.

The entire field is exported without truncation.

User response
If the output file cannot be processed by another product, export only a substring of the incorrect column, redefine the table, or manually truncate the data in the DEL column.
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
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