Previous Topic

Next Topic

Book Contents

Book Index

Scripting - Datacomp

This runs the Data Compare function in unattended mode.

The syntax of the Datacomp script function is not given. This is a complicated function. It is suggested that you:

Specifying Primary Key and Columns

When running the datacomp function in batch, there are some parameters that do not need to be specified:

This makes it easier to run multiple compares in batch (next section)

Running Multiple Compares

If you wish to compare multiple tables (such as all tables in a schema), this can be done as follows:

--aqt datacomp,tab1=$1.$2,dbs1=<dbs1>,tab2=$1.$2,dbs2=<dbs2>,genscript=1,append=y,rpt=y

In this, replace <dbs1> and <dbs2> with the databases you are comparing between.