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 > Exporting columns longer than 254 bytes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-09-04, 17:51
saltbits saltbits is offline
Registered User
 
Join Date: Jun 2004
Posts: 28
Exporting columns longer than 254 bytes

I am using the DB2 EXPORT command to export in DEL format like this:

EXPORT TO "4000T2.txt" OF DEL MODIFIED BY NOCHARDEL COLDEL% MESSAGES "4000T2Msg.txt" SELECT * FROM T2;

One of the columns is of size VARCHAR(4000). The exported flat file contains all the 4000 chars but the Message file states a warning message that says that a certain column is over 254 bytes.

Since the exported flat file has my required data, I am tempted to ignore the warning in the message file. Should I take this seriously or will the behaviour of exporting the 4000 chars be consistent no matter the warning??

Thanks for any help.
Reply With Quote
  #2 (permalink)  
Old 07-14-04, 14:43
saltbits saltbits is offline
Registered User
 
Join Date: Jun 2004
Posts: 28
26 views and no replies. have i really asked such a dumb question?

Somebody please consider helping....

Thanks.
Reply With Quote
  #3 (permalink)  
Old 07-14-04, 15:10
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Quote:
Originally Posted by saltbits
I am using the DB2 EXPORT command to export in DEL format like this:

EXPORT TO "4000T2.txt" OF DEL MODIFIED BY NOCHARDEL COLDEL% MESSAGES "4000T2Msg.txt" SELECT * FROM T2;

One of the columns is of size VARCHAR(4000). The exported flat file contains all the 4000 chars but the Message file states a warning message that says that a certain column is over 254 bytes.

Since the exported flat file has my required data, I am tempted to ignore the warning in the message file. Should I take this seriously or will the behaviour of exporting the 4000 chars be consistent no matter the warning??

Thanks for any help.
It can be safely ignored. I believe the warning exists because of restrictions on creating CHAR() columns >254.
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #4 (permalink)  
Old 07-14-04, 17:15
saltbits saltbits is offline
Registered User
 
Join Date: Jun 2004
Posts: 28
Thanks, Petruk!
Reply With Quote
  #5 (permalink)  
Old 07-14-04, 17:24
db2guru1 db2guru1 is offline
Registered User
 
Join Date: Aug 2003
Posts: 106
Alternatively, you could just export couple of records > 254 char and see the output to satisfy yourself
__________________

You are the creator of your own destiny!
Reply With Quote
  #6 (permalink)  
Old 07-14-04, 18:19
saltbits saltbits is offline
Registered User
 
Join Date: Jun 2004
Posts: 28
Thanks, guru.
Reply With Quote
  #7 (permalink)  
Old 07-15-04, 03:47
gdipietro80 gdipietro80 is offline
Registered User
 
Join Date: Oct 2003
Location: Rome
Posts: 15
I prefer export table that are column with char > 254
in IXF mode
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