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

Adding a DB2 Unload File Data Map

When you add a DB2 unload file data map, you can import a copybook.
To add a DB2 unload file data map:
  1. On the
    Resources
    tab in the
    Resource Explorer
    , click
    Add > Data Map
    .
  2. Enter the following information in the
    Name
    dialog box:
    • Select the
      DB2UNLD
      access method.
    • Select the
      Import Record Definitions
      option.
  3. In the
    DB2UNLD Access Method
    dialog box, enter the following information:
    • In the
      File Name
      box, enter the name of the target DB2 unload file.
    • In the
      DB Instance
      box, enter the DB instance, such as DSN9.
    • In the
      Table Name
      box, enter the table name or click the Browse button to browse to the file. In the
      DB2 Table Filter
      dialog box, enter filter criteria based on the creator or schema name, database name, or table name. Click
      Next
      . Select a table and click
      Finish
      .
    • In the
      Unload Type
      list, select the unload type. For bulk access to unload files, the following IBM and BMC formats are supported: .REORG UNLOAD, .DSNTIAUL/BMC UNLOAD+, .DSNUTILB UNLOAD, and .UNDEFINED. By default, the .UNDEFINED type is generated with null indicators, and count fields in the same position as in the REORG UNLOAD EXTERNAL type. Instead of using these unload types, you can modify these statements to meet specific requirements. You can move or delete these statements to correspond to user-defined unload formats, but PowerExchange interprets them if they precede the data field to which they apply.
  4. Click
    Finish
    .
  5. In the
    Import Copybook - Source Details
    dialog box, select
    Remote
    and select the
    DB2 Catalog
    copybook type.
  6. Click
    Next
    .
  7. In the
    Import Copybook - Remote DB2 Catalog Details
    dialog box, enter the following information:
    • In the
      Save File Locally As
      box, enter a file name.
    • In the
      Null Indicator
      box, enter the hexadecimal value of the null indicator that is used in the unload file that you are mapping.
    • If the variables are padded in the unload file that you are mapping, select the
      Pad Variable
      option. This option corresponds to the BMC UNLOAD PLUS FIXEDVARCHAR option.
    • To select specific columns, click
      Preview/Amend Columns
      .
  8. Click
    Next
    .
  9. In the
    Import Copybook - Configuration Details
    dialog box, select the actions for imported records, fields, and tables and click
    Next
    . For more information, see Importing a Copybook into a Data Map.
  10. In the
    Import Copybook Information
    window, review the information for the import and click
    OK
    .
  11. In the
    Record Definition
    dialog box, select an action for each imported record and click
    OK
    . For more information, see Importing a Copybook into a Data Map.
    The
    DB2 Catalog Import
    window displays the imported copybook.
    The
    Copybook Message Log
    window displays the results of the import operation.
    If an error message appears in the
    Copybook Message Log
    window, double-click the message to find the associated line in the copybook.

0 COMMENTS

We’d like to hear from you!