Table of Contents

Search

  1. Preface
  2. Introduction to Data Validation Option
  3. Repositories
  4. XML Data Source
  5. Tests for XML Data Sources
  6. Connections
  7. Expressions
  8. Table Pairs
  9. Tests for Table Pairs
  10. Single-Table Constraints
  11. Tests for Single-Table Constraints
  12. Examples of Tests from Spreadsheets
  13. SQL Views
  14. Lookup Views
  15. Join Views
  16. Aggregate Views
  17. Business Intelligence and Reporting Tools Reports
  18. Dashboards
  19. DVOCmd Command Line Program
  20. Troubleshooting
  21. Datatype Reference
  22. Reporting Views
  23. Metadata Import Syntax
  24. Jasper Reports
  25. Glossary

Data Validation Option User Guide

Data Validation Option User Guide

Data Validation Example

Data Validation Example

You upgraded to the current version of PowerCenter, and you need to verify that mapping output has not changed. You compare the mapping results of the pre-upgrade mappings with the results of the upgraded mappings.

Step 1. Run a session.

Run a session in PowerCenter and use separate connections to write the target data for the upgraded mapping.

Step 2. Create a table pair object.

Create a table pair object in the Data Validation Client. You perform the following configuration:
  • Add the tables. One table in the table pair contains the mapping results from the pre-upgraded mapping, and one table contains the mapping results from the upgraded mapping.
  • Select the connections associated with each of the tables.
  • Create a join relationship based on a primary key, CUST_ID.

Step 3. Create validation tests.

Create the following tests based on the table pair:
  • VALUE test. The VALUE test compares the CUST_ID values row-by-row in each table and determines whether they are the same. Any row that exists in one table and not the other is disregarded. Add the following test condition:
    CUST_ID = CUST_ID
  • COUNT_ROW test. The COUNT_ROW test compares the total number of values for the CUST_ID column.

Step 4. Run the tests.

When you run the test, the PowerCenter Integration Service creates and runs a mapping based on the test. It writes the test results to the Data Validation repository.
You view the results in the Data Validation Client to verify that the tests passed, indicating that both tables contain the same number of rows and that the customer IDs match.

Back to Top

0 COMMENTS

We’d like to hear from you!