Is it possible to create a single fixed width sequential file from different data layouts?
the data layout are as :
Header record ( 1 record)
Detail records ( multiple records)
trailer record ( 1 record)
Different data layout in a single sequential file
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
There are several paradigms.
Easiest is to write the header then append the detail and trailer.
Or you could create a dummy field with value 1 to header, 2 to detail and 3 to trailer, and use a sort/merge collector on this field to bring them together.
Just a couple of ideas.
Easiest is to write the header then append the detail and trailer.
Or you could create a dummy field with value 1 to header, 2 to detail and 3 to trailer, and use a sort/merge collector on this field to bring them together.
Just a couple of ideas.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.