Loading data using CLPPlus
You can use the SQL CALL statement with the ADMIN_CMD procedure in the command line
processor plus (CLPPlus) interface to run the LOAD command. CLPPlus is included
in the Db2® Warehouse container.
Before you begin
Ensure that you have root authority.
The easiest approach is to put the data in /mnt/clusterfs/scratch/datafile, where datafile specifies the file that contains your data. The instructions in this topic described how to load data from this location. However, if you have large data sets on an NFS share that you want to load, it's preferable to mount that share on the host instead of copying it to the host. For instructions, see the information about using CLP for remote data loading in Running the LOAD command.
About this task
This task describes how to load data into an existing table.
Procedure
Example
The following sample output was generated by executing the SELECT statement in the output of a
LOAD
command:
SQLCODE MSG
--------- --------------------------------------------------
SQL27966W The DB2_LOAD_COPY_NO_OVERRIDE registry variable value "COPY YES TO /mnt/blumeta0/db2/copy" overrides the COPY NO parameter specified in the Load.
SQL3109N The utility is beginning to load data from file"/mnt/bludata0/data.del".
SQL3500W The utility is beginning the "LOAD" phase at time "10/12/2016 17:12:28.424467".
SQL3519W Begin Load Consistency Point. Input record count = "0".
SQL3520W Load Consistency Point was successful.
SQL3119W The value in row "F0-1" and column "1" could not be converted to an integer value, so a null value was loaded instead.
SQL3119W The value in row "F0-4" and column "1" could not be converted to an integer value, so a null value was loaded instead.
SQL3110N The utility has completed processing. "15" rows were read from the input file.
SQL3519W Begin Load Consistency Point. Input record count = "15".
SQL3520W Load Consistency Point was successful.
SQL3515W The utility has finished the "LOAD" phase at time "10/12/2016 17:12:28.478799".
SQL3500W The utility is beginning the "BUILD" phase at time "10/12/2016 17:12:28.480188".
SQL3213I The indexing mode is "INCREMENTAL".
SQL3515W The utility has finished the "BUILD" phase at time "10/12/2016 17:12:28.497478".
SQL3107W At least one warning message was encountered during LOAD processing.