Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
the query is

CALL SYSCS_UTIL.SYSCS_IMPORT_TABLE 
   (null,'ADDED','D:\added.del',';','%',null,0);


ADDED is the table name

the contents for added.del are

Aigreur	;	Sourness	;	word	;	add	


added several records with the added.del file but this particular record does not add and the rror is

"Read end of file at unexpected place on line 1. "


What I have tried:

changed the code, added semi colons and changed added.del
Posted
Updated 16-Apr-18 1:32am
v2

1 solution

The error message tells you that there was an error parsing the input file:
The parser has read up to the end of the file but expects more data to be present.

With your single line data there might be two reasons:
  1. The line is not terminated by a newline and the used SYSCS_UTIL.SYSCS_IMPORT_TABLE implementation is not smart enough to allow a missing newline on the last line.
  2. The table has more than four columns
 
Share this answer
 
Comments
four systems 16-Apr-18 12:27pm    
thanks, there is a similar table with two columns and the file has record
académique ; academic , which is added fine however this particular case
some records were added earlier but this particular line did not add'

the table has four columns

regards,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900