You can use the Loader program to control the way you load and unload data with Java programs.
For this purpose, the Java package com.sap.dbtech.powertoys provides you with the Java class com.sap.dbtech.powertoys.Loader. This Java package is included in the software of the JDBC driver.
You can use the Java class com.sap.dbtech.powertoys.Loader to send Loader commands and SQL statements to the Loader program. As a result, you get the return codes of the Loader commands and SQL statements. You then end the connection to the Loader.
The return codes of the commands and statements are provided as Java variables, which you can then format easily. When errors occur, exceptions are raised, which you can then catch and handle.
See also:
Connecting to the Loader with Java
Executing Loader Commands with Java
Ending the Connection to the Loader
Example for Creating a Table with Java