Hi,
My easytrieve prog is writing 3 reports to the same file depending on a certain logic. The problem is that in the output file it does not write the report records as the inpput file, instead it clubs the records of a report type together. For eg
Input file
Rec 1: legal entity = All, Product = A (to be processed by report A)
Rec 2: legal entity = All, Product = A (to be processed by report A)
Rec 3: legal entity = All, Product = B (to be processed by report B)
Rec 4: legal entity = B, Product = A (to be processed by report A)
Rec 5: legal entity = B, Product = B (to be processed by report B)
Rec 6: legal entity = E, Product = A (to be processed by report A)
Rec 7: legal entity = E, Product = A (to be processed by report A)
Rec 8: legal entity = E, Product = C (to be processed by report C)
IN the O/p file,
All the records with legal entity All should appear together, instead they come as
Rec 1: legal entity = All, Product = A (to be processed by report A)
Rec 2: legal entity = All, Product = A (to be processed by report A)
Rec 4: legal entity = B, Product = A (to be processed by report A)
Rec 6: legal entity = E, Product = A (to be processed by report A)
Rec 7: legal entity = E, Product = A (to be processed by report A)
Rec 3: legal entity = All, Product = B (to be processed by report B)
Rec 5: legal entity = B, Product = B (to be processed by report B)
Rec 8: legal entity = E, Product = C (to be processed by report C)
How can I make it display the records in the order they were processed(the order they were present in the i/p file) or basically sorted by legal entity.