When I execute the following statment using the Command Center it
works:
LOAD CLIENT FROM 'Y:\\TheFixedWidthData.txt' OF ASC METHOD L ( 1 1,2
11,12 17) REPLACE INTO S00.TheTargetTable NONRECOVERABLE WITHOUT
PROMPTING
Yet when I try to execute the same statement in a PreparedStatement it
does not work, but gives me a SQLException:
DB2 SQL error: SQLCODE: -104, SQLSTATE: 42601, SQLERRMC: LOAD CLIENT
FROM 'Y:\\TheFixedWidthData.txt' OF ASC ME;BEGIN-OF-STATEMENT;<values>
My analysis so far:
(1) The Command Center says it uses a JDBC connection. So it must be
possible to do this using a JDBC connection, or more specifically, a
DB2Connection.
I have been using a type 4 connection so far, and over that connection
I executed other statements successfully (some selects with DB2
specific options).
(2) The Command Center understands and executes the Statement. So the
SQLException shown above doesn't make much sense to me, as the manual
says it basically means: "Syntax Error in Statement".
RTFM pointers anyone?
Kind regards
Claus