Table of Contents

Search

  1. Preface
  2. PowerExchange Navigator Introduction
  3. Data Maps
  4. Data Maps for Specific Data Sources
  5. Copybooks
  6. Registration Groups and Capture Registrations
  7. Extraction Groups and Extraction Maps
  8. Personal Metadata
  9. Database Row Test
  10. PowerExchange Navigator Examples
  11. Appendix A: PowerExchange Functions for User-Defined Fields
  12. Appendix B: User Access Method Programs
  13. Appendix C: Application Groups and Applications
  14. Appendix D: Data Map Properties
  15. Appendix E: Record, Field, and Table Properties
  16. Appendix F: DTL__CAPXTIMESTAMP Time Stamps
  17. Appendix G: Trace for Creating a Memory Map When Importing a COBOL Copybook

Navigator User Guide

Navigator User Guide

Adding a DB2 Unload File Data Map - Example

Adding a DB2 Unload File Data Map - Example

This example demonstrates how to use a Type 3 DSNUTILB UNLOAD file. You can use this same procedure for a Type 1 REORG UNLOAD file.
The unload file contains data from the PWXTAB3 and PWXTAB4 tables, each with its own structure. For Type 3, the underlying table is specified by the OBID in the first two bytes. The OBIDs for the tables are x’0004’ and x’0005’ respectively.
To add DB2 unload file data map:
  1. Add a data map to map the PWXTAB3 table.
  2. On the
    Data Map
    tab in the
    Resource Explorer
    , right-click the DTL_OBID field and click
    Properties
    .
  3. In
    Record ID Values
    box, enter the OBID hex value of x’0004’ and click
    OK
    .
    The icon for the DTL_OBID field appears in green, indicating that the
    Record ID
    filter is set for the field.
  4. Import the next underlying table, PWXTAB4.
  5. In
    Record ID Values
    box, enter the OBID hex value of x’0005’ and click
    OK
    .
    The icon for the DTL_OBID field appears in green, indicating that the
    Record ID
    filter is set for the field.
  6. To test the PWXTAB4 table, run a database row test.
    The
    Database Row Test Output
    window displays two rows with an OBID of x’0005’.

0 COMMENTS

We’d like to hear from you!