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

Multiple Arrays in a Single Input Row

Multiple Arrays in a Single Input Row

Some legacy data sources contain multiple arrays, or OCCURS clauses, on a single record.
PowerExchange can generate multiple output rows from a single record, and set output fields to NULL when the data in the record is exhausted.
The following table shows some example input:
Input Row
fld1 - OCCURS DEPENDING
fld2 - OCCURS DEPENDING
1
3 values 10, 20, 30
2 values AA, BB
2
1 value 55
4 values DD1, DD2, DD3, DD4
The following table shows the example output:
Output Row
Fld1
Fld2
1
10
AA
2
20
BB
3
30
NULL
4
55
DD1
5
NULL
DD2
6
NULL
DD3
7
NULL
DD4
You can also use this single input–many output process with other types of fields, such as account numbers, so that every output row is complete.

0 COMMENTS

We’d like to hear from you!