Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

how to write the status of load in a table as a control mechanism Monday, Ma

$
0
0
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:

Code:

CREATE TABLE dbschema.load_status (
            day DATE,
            load_file VARCHAR(20),
            status VARCHAR(20)
) IN user_ratna INDEX IN user_ratna;

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:
Code:

DB2 LOAD QUERY TABLE schema.loadtable_1 NOSUMMARY
But I actually want to just get the Tablestate (in progress, normal, ... )


Thank you very much for the advices.

Regards,

Ratna:)

Viewing all articles
Browse latest Browse all 13329

Trending Articles