|
View previous topic :: View next topic
|
| Author |
Message |
Floramq
New User
Joined: 18 May 2017 Posts: 5 Location: CAnada
|
|
|
|
Would anyone be able to solve this ? I have two input files like this but much bigger. One has 0000 and 9999 as headers and trailers, but multiple chunks like this:
0000
DATA A
DATA C
DATA E
9999
0000
DATA G
DATA Q
9999
The other has no header/trailer and it might have
DATA B and more fields
DATA E and more fields
DATA Q and more fields
The output I want is
0000
DATA E with the more fields
9999
0000
DATA G with the more fields
DATA Q with the more fields
9999
I am not fussy about the 0000 and 9999, except the final output batches cannot be more than 999 records themselves. So the following would be fine as long as no more than 999 detail records in each batch.
0000
DATA E with the more fields
DATA G with the more fields
DATA Q with the more fields
9999
I am really struggling with this. The output file will be much smaller than the input two files, but there certainly could be more than 999 matches.
Thank you for any help ! |
|
| Back to top |
|
 |
Joerg.Findeisen
Senior Member

Joined: 15 Aug 2015 Posts: 1448 Location: Bamberg, Germany
|
|
|
|
Please explain the logic to join. First part seems to be an inner join, second matches only Q but has also G included.
Use code tags when presenting data/code  |
|
| Back to top |
|
 |
|
|