Hi Cynthia, Thank you very much for your reply. Well the issue with the length of linesize was a bit different. It is true that the output was OK within SAS but also in the excel. But if the same code was executed twice, then the excel-file gave an error while opening ("file damaged - do you want to repair it?" - something like that). So it was very weird because restarting SAS, executing the code had solved that issue. By the way, no warnings withing SAS towards that phenomenon. What I see now in your code is option noquotelenmax; This is indeed something I have not tried. I have not tried it yet but this might eliminate the issue. My solution (as the project was in a hurry) was now to use many ODS TEXT. The solution is not very elegant (among others needing an empty PROC PRINT to display the ODS TEXT and to cut the length of the lines manually) but it worked. There is also the possibility to put style in ODS Text. But I will definitively have to come back to that issue, and so as soon as possible I will check the possibility you provided. Kind regards!
... View more