Hi to all: I have this lovely report that I spent a lot of time on, that uses PROC PRINT to create a hard copy report. My client has now requested that the report be saved a s an Excel spreadsheet and look exactly the same :smileyalert: My problem is that the current hardcopy report has a BYLINE and I can't seem to reproduce it using ODS and EXCELXP. Some info: I am using SAS 9.1.3 on Windows using ODS and tagsets EXCELXP v1.85. I have "sheet_interval=none" in my EXCELXP options, I am using PROC PRINT and PROC REPORT to generate the report to a file (just to see if one had the error and the other didn't). I have the same "BY" statement as in the hard copy code. Here is the odd thing - if I have "OPTION NOBYLINE", the resuting spreadsheets (both) are readable, but (obviously) there is no BY line. If I code "OPTION BYLINE", I am unable to open either spreadsheet with that stupid (!!!) "Problems During Load" XML error on the "Table". Is there a way to get the BY line to print on the report? I assume that it can be done with a BREAK BEFORE in PROC REPORT, but I would like it to look the same as in the original PROC PRINT. PROC REPORT CODE: * option byline; *<----<< causes the problem *; ods listing close; run; ods tagsets.ExcelXP options(sheet_name='Summary' orientation='landscape' papersize='LETTER' embedded_titles='yes' embedded_footnotes='yes' FitToPage='yes' sheet_interval='None' suppress_bylines='no' zoom='90' ROW_HEIGHT_FUDGE='1' absolute_column_width='12,12,12,12,12,12,12,12,12,12,12'); proc report data=reptdata nowd split='*' missing style(REPORT)={font_face=Arial font_size=9pt} style(HEADER)={background=#eeeeee} style(SUMMARY)={font_face=Arial font_size=9pt}; BY var1 notsorted; column var1 var2 var3 ...snip... var11; define var1 / group noprint; define var2 / display 'label2'; define var3 / display 'label3'; ....snip.... define var11 / display 'label11'; rbreak after / summarize; compute net; if _break_= '_RBREAK_' then var11 = var10.sum - var9.sum; else var11 = .; endcomp; TITLE1 j=c "FOR &rptdate"; RUN; ods tagsets.excelxp close; run;
... View more