The SAS Output Delivery System and reporting techniques

Exporting results: formatting issues

Reply
Learner
Posts: 1

Exporting results: formatting issues

Hello,

 

I am having issues with formatting when I export my results to Excel. 

 

I used the following code:

ODS TAGSETS.EXCELXP
file="/folders/myfolders/sasuser.v94/Data.xlsx"
	STYLE=minimal 
	OPTIONS (embedded_titles='yes' embedded_footnotes='yes'
	Orientation = 'landscape'
				FitToPage = 'yes' 
				sheet_name='Data');
PROC FREQ data=lib.data;
tables example1*example2;
RUN;

ODS tagsets.excelxp close;

Screen Shot 2016-06-21 at 7.59.43 AM.png

As you can see above, I end up with a row of numbers instead of columns within each cell (see below).

This is what the results look like in SAS Studio:
Screen Shot 2016-06-21 at 8.02.51 AM.png

How can I fix this?

I apologize if I haven't asked this very clearly--I'm quite new to SAS!

 

Thank you!

 

Grand Advisor
Posts: 17,360

Re: Exporting results: formatting issues

What version of SAS and tagsets are you using? This was a known issue but I thought it was fixed. The workaround was to use proc tabulate IIRC. 

 

 

Ask a Question
Discussion stats
  • 1 reply
  • 220 views
  • 0 likes
  • 2 in conversation