|
What is wrong with this code? When I run it, I get the PROC FREQ tables just fine in the SAS output window, but the spreadsheet shows just the table stubs, with no statistics in the body. I have the feeling I must be overlooking something very basic, but it's eluding me this morning.
|
|
Excel can read HTML files. If you ODS HTML statement you should get the output you want.
|
|
this tagset outputs an XML file with an '*.xls' extension, so right click and send to notepad and you should be able to find your ods output in a bunch of xml markup. If it's not in that, then you may have an outdated tagset or ODS is misbehaving. I suspect ODS listing should be on. I would also suspect the STYLE=JOURNAL2; statement as excelXP tagset can be kind of picky and not work with some style commands. I would try deleting that and see what happens. You should get the default. Here's a style that worked for me:
I also ran into some problems with options in the tagset, and at one point I seemed to have some luck by moving titles outside the block altogether. I think I may also have taken format statements out of the block at one point. |
|
There's an explanation from SAS here: http://support.sas.com/kb/32/115.html If you add /CROSSLIST to the table statement it works. |