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

Importing a COBOL Copybook with REDEFINES Statements - Example

Importing a COBOL Copybook with REDEFINES Statements - Example

You can add a
multiple-record
data map and import a complex COBOL copybook with REDEFINES statements into it.
This example shows how to complete the following tasks:
  1. Add a data map and import a COBOL copybook into it.
    When you add the data map, you use a fixed-length binary data file of EBCDIC data with 58320 records. Each record is 57 bytes long. This EBCDIC data file simulates reading data from an IBM mainframe system.
    In the
    Add Data Map
    dialog box, you set the skip records option to skip a header record in the data file.
    You import a COBOL copybook with line numbers in columns 1 through 6 and comments in columns 73 through 80. The COBOL copybook also contains REDEFINES statements.
    PowerExchange ignores the comment lines in the copybook.
  2. Apply a date mask to a GROUP field in the data map.
This example uses the train5.dat and train5.cob files.

0 COMMENTS

We’d like to hear from you!