Hello,
You can call a async proxy in a EOIO manner t PI which will maintain sequence in PI as well and at the end once all ur records are send to PI u can make a dummy proxy call (with a flag/indicator) so that PI can understand that the file is completely written (all data appended in a single file) and eventually file can be delivered to end system.
Thanks
Amit Srivastava