Hi Pranas,
> ---------------------------------------------------------------
> Has some one idea how to get status code from Java API to the
> SAP DB Loader?
>
> ---------------------------------------------------------------
> Demo:
> ...
> loader = new Loader(prop);
> ...
> command = "INSERT INTO TABLE VALUES('value')";
> System.out.println("STATUS CODE: <"+loader.cmd(command)+">");
> ...
> ---------------------------------------------------------------
> Result:
> STATUS CODE: <>
>
> Is it BUG?
It is more a Feature.
The output of the LOADER command consists of
- some error message
- or an "OK" plus some trailing optional information, separated by a linefeed
The "OK\n" string is stripped by the Loader class, if found.
Cheers
Alexander Schr�der
SAP Labs Berlin
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general