Hallo everyone,
I would like to create a status table for my LOAD-commands.
I have 3 different csv files, which have to be loaded regularly(every 3 days). I would like to create a status table, which gives me the status of the LOAD-commands(successfully? error? processing?)
I am thinking about this table as status table:
My questions:
1. What is the best practice to implement this?
2. How can I implement the querying of the load status and to write this in above the table? I am thinking about:
But I actually want to just get the Tablestate (in progress, normal, ... )
Thank you very much for the advices.
Regards,
Ratna:)
I would like to create a status table for my LOAD-commands.
I have 3 different csv files, which have to be loaded regularly(every 3 days). I would like to create a status table, which gives me the status of the LOAD-commands(successfully? error? processing?)
I am thinking about this table as status table:
Code:
CREATE TABLE dbschema.load_status (
day DATE,
load_file VARCHAR(20),
status VARCHAR(20)
) IN user_ratna INDEX IN user_ratna;
1. What is the best practice to implement this?
2. How can I implement the querying of the load status and to write this in above the table? I am thinking about:
Code:
DB2 LOAD QUERY TABLE schema.loadtable_1 NOSUMMARY
Thank you very much for the advices.
Regards,
Ratna:)