The SAS Output Delivery System and reporting techniques

Extra line at end of ODS

Reply
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;
Title;
Ods Csv File = "test.txt"  ;

  Proc Print  Data=Ab_Out Noobs;
  Run;

Ods Csv Close;

Super User
Posts: 11,343

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
  • 270 views
  • 0 likes
  • 2 in conversation