The SAS Output Delivery System and reporting techniques

Extra line at end of ODS

Super Contributor
Posts: 359

Extra line at end of ODS

I have an ODS output to CSV.  The recipient of this file is complaining that there are 2 cariage returns at the end of the file.  Is there any simple way to remove those past the data lines?  Otherwise I may have to change this to a data _null_  to satisfy them.

Ods Listing Close;
Ods Csv File = "test.txt"  ;

  Proc Print  Data=Ab_Out Noobs;

Ods Csv Close;

Super User
Posts: 13,498

Extra line at end of ODS

If you actual data is as simple as your example PROC EXPORT might be a solution. At least I haven't had it put extra lines at the end like ODS does in most of the flavors I've used so far.

Ask a Question
Discussion stats
  • 1 reply
  • 2 in conversation