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 > Help Required:Unable to import csv files into table in IBM DB2 V8.1.9

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-03-12, 05:48
Deepa Raj Deepa Raj is offline
Registered User
 
Join Date: Jan 2012
Posts: 2
Question Help Required:Unable to import csv files into table in IBM DB2 V8.1.9

Hi ,

Im unable to import data present in CSV file into a table in IBM Db2 though the table has been successfully created and data matches the columns. it gives the below message


SQL3304N The table does not exist.

Explanation:

The parameters specified on the command require that the table
exists.

The utility stops processing. No data is loaded.


The exporting works fine .
The query related to this is given below

CONNECT TO WLPTAPDB USER "db2admin" USING ;
IMPORT FROM "D:\DB\Data In CSV\TRAN.csv" OF DEL METHOD P (1, 2, 3, 4, 5, 6, 7, 8, 9) MESSAGES "tran" INSERT INTO MQSIADM.TFRMTN_PRPTY (SRVC_TYP, SRVC_VER, SRC_PYLD_FMT, MSG_TYP, SRC_MSG_SET_ID, SRC_WIRE_FMT, TRGT_PYLD_FMT, TRGT_MSG_SET_ID, TRGT_WIRE_FMT);
CONNECT RESET;

Kindly suggest me on this .


Deepa
Reply With Quote
  #2 (permalink)  
Old 01-03-12, 05:55
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
try : connect
describe table MQSIADM.TFRMTN_PRPTY
or db2 list tables for schema MQSIADM
or select creator,name from sysibm.ssytables where upper(creator) like 'MQSIADM%'
__________________
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
  #3 (permalink)  
Old 01-04-12, 02:06
Deepa Raj Deepa Raj is offline
Registered User
 
Join Date: Jan 2012
Posts: 2
Hi przytula_guy,

Thanks a lot for the suggestion but Im unable to import csv files and I get the below error only when I try to load the table with .csv file data

SQL3304N The table does not exist.

Explanation:

The parameters specified on the command require that the table
exists.

The utility stops processing. No data is loaded.


Im getting the table listed when I tried to run the commands you suggested below .Please let me know how to import the data in .csv files.

Thanks
Reply With Quote
  #4 (permalink)  
Old 01-04-12, 02:25
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
if the error persists : this must be a user error
- or connected to wrong db - is the connect succesfull
- miss spelled tablename/schema
verify a bit closer..
__________________
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