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

Step 1. Add a Data Map and Import a COBOL Copybook with REDEFINES Statements into the Data Map

Step 1. Add a Data Map and Import a COBOL Copybook with REDEFINES Statements into the Data Map

Add a
multiple-record
data map and import a COBOL copybook with REDEFINES statements into the data map.
  1. On the
    Resources
    tab in the
    Resource Explorer
    , click
    Add
    Data Map
    .
  2. In the
    Name
    dialog box, enter information about the data map.
    The following table describes the information to enter:
    Option
    Description
    Schema Name
    Enter
    COBOL
    .
    Data Map Name
    Enter
    map3
    .
    Access Method
    Select
    SEQ
    .
    Import Record Definitions
    Select this option.
  3. Click
    Next
    .
  4. In the
    SEQ Access Method
    dialog box, enter information about the data file.
    The following table describes the information to enter:
    Option
    Description
    File Name
    Click the Browse button to browse to the train5.dat file in the
    examples
    directory.
    Fixed
    Select this option.
    Size
    Enter
    57
    .
    Default
    Select this option.
    Encoding
    Select
    EBCDIC
    .
    Codepage
    Select
    Default
    .
    Skip First
    Enter
    1
    .
    After you set the encoding and code page, select the
    Fixed
    option again.
  5. Click
    Finish
    .
  6. In the
    Import Copybook - Source Details
    dialog box, enter information about the copybook.
    The following table describes the information to enter:
    Option
    Description
    Source
    Select
    Local
    .
    Type
    Select
    COBOL
    .
    Start
    Enter
    7
    .
    End
    Enter
    72
    .
  7. Click
    Next
    .
  8. In the
    Import Copybook - Local Cobol Details
    dialog box, click the Browse button to browse to the train5.cob file in the examples directory.
    To view the copybook, click
    Preview
    .
  9. Click
    Next
    .
  10. In the
    Import Copybook - Configuration Details
    dialog box, select the actions for imported records, fields, and tables and click
    Finish
    . For more information, see Import Copybook - Configuration Details Dialog Box.
  11. In the
    Import Copybook Information
    window, review the information for the import and click
    OK
    .
  12. In the
    Record Definition
    dialog box for the MASTER_REC record, click
    OK
    .
    The
    Copybook Redefines
    window notifies you that the copybook contains REDEFINES statements.
    The
    Cobol Import
    window appears.
  13. To point to the line that contains the PIC S9(8) field, click
    Redefinition
    Next
    or
    Redefinition
    Previous
    .
  14. Click
    Import
    Resume
    .
    The
    Cobol Import
    window displays the imported copybook.
    The
    Copybook Message Log
    window displays the results of the import operation.
    The first line in the message log refers to a record in the
    Cobol Import
    window. Click the first line in the message log to highlight the specified record in the
    Cobol Import
    window.
  15. Close the
    Cobol Import
    window.

0 COMMENTS

We’d like to hear from you!