Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Blank Lines

Status
Not open for further replies.

SPhill

Programmer
Sep 17, 2003
32
GB
Anyone know how to eliminate the top two blank rows that ODS CSV creates?

Thanks

Scott(SAS8.2 TSO JCL MVS)

My code below:-

ods CSV body=CSV
style=minimal
rs=none;
*;
proc print;
run;
ods CSV close;


 
Thanks for this, I'll give it a go.


Scott
 
Yep, it's all down to the NL statements. I recommend looking up information about creating your own tagsets as well, as the default CSV one is a little iffy I think. I ended up creating my own template to produce CSV files from ODS. It basically puts " marks around every single field so that when it gets read into Excel it's treated as text and not reformated. (the only downside is that the numbers are treated astext too so you can't add them up in Excel then).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top