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 > Load utility issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-10-05, 08:32
mohd mohd is offline
Registered User
 
Join Date: Jul 2003
Posts: 63
Load utility issue

Hi

I am using DB2 8.1 on windows
I want to load data from a text file to a table.
text file data is having TAB as delemiter , how to specify it in load command.
also the data contains (,) comma in some of the data values.
when i tried to load it using default del it took comma as delemiter

Please help

Thx
__________________
Mohd
Reply With Quote
  #2 (permalink)  
Old 03-10-05, 12:05
achiola achiola is offline
Registered User
 
Join Date: May 2002
Location: General Deheza, Cba, Arg.
Posts: 273
example:
----------------------------
IMPORT FROM "C:\ABEL.TXT" OF DEL MODIFIED BY CHARDEL"" COLDEL, DECPT. METHOD P
(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28)
MESSAGES "C:\ABEL.img" INSERT INTO DB2DWAD1.H0_ATI_PARTES
(PROPIET, NIVEL, FECHACLAVE, HORACLAVE, AREA, SISTEMA, N_PARTE, F_INGRE, TITULO,
PRIORIDAD, CLIENTE, SECTORCLIENTE, PLAZO, RECEPTO, ASIGNO, A_INICIO,
A_FIN, A_HS, E_INICIO, E_FIN, E_HS, ESTADO, DATO, PRESUP, PROYECTO, REQUERIMIENTO, INDICADOR, MARCACIERREMENSUAL);
-------------------------------
chardel: is the character delimiter
coldel: is the column delimiter
DECPT: is the decimal point

the tab delimiter I think was is |, but no sure.
good luky
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