I am using DB2 version 8 and os is windows.
I am synchronizing the three databases.
CONNECT TO CAEEDMP USER "caeedm" USING password;
EXPORT TO "C:file1.txt" OF DEL MESSAGES "C:\file_error.txt" SELECT * FROM schema.tablename
CONNECT RESET;
CONNECT TO CAEEDMT USER "caeedm" USING password;
DELETE FROM schema.tablename;
IMPORT FROM "C:\file1.txt" OF DEL METHOD P (1, 2, 3) MESSAGES "C:\file_error.txt" INSERT INTO schema.tablename (ID, "NAME", DESCRIPTION);
CONNECT RESET;
CONNECT TO CAEEDMD USER "caeedm" USING password;
DELETE FROM schema.tablename;
IMPORT FROM "C:\file1.txt" OF DEL METHOD P (1, 2, 3) MESSAGES "C:\file_error.txt" INSERT INTO schema.tablename(ID, "NAME", DESCRIPTION);
CONNECT RESET;
this is the code for a single table .
but I want to do this for a list of tables .
The code should be in a loop
I got the list of table. but can't process further.