We use PowerBuilder 2019R2 for our application. It is an application that generates reports. The report can be saved in CSV also. It was done by using Datawindow.Saveas initially. But when we got a requirement to change the delimiter in csv, we changed saveas to SaveasFormattedText. The function works for small result sets But the column order in the CSV changes for huge result sets. Could you please tell us how can we solve this issue.