Hi All: I am using PROC REPORT and ODS with the ExcelXP tagset (v1.85) to create a spreadsheet. I have a BY value in the PROC REPORT that I would like to generate a new printer page (not a new sheet) for each BY value, but it is not doing it for some reason - the pages are continuous when I do a "print preview" in the resuting spreadsheet. I have read discussion: http://communities.sas.com/message/49124#49124, and Cynthia mentions that using a BY should cause the resuting spreadsheet to page for each value of the BY variable. I'm thinking that it is a ExcelXP tagset option, but which? Here is "most" of the code.... ods tagsets.ExcelXP options(sheet_name="DECODE=&decode" orientation='landscape' papersize='LETTER' embedded_titles='yes' embedded_footnotes='no' ROW_REPEAT='7' FitToPage='yes' sheet_interval='None' zoom='90' Pages_FitWidth='1' Pages_FitHeight='999' print_footer_margin='0.25' ROW_HEIGHT_FUDGE='1' absolute_column_width='12,12,12,12,12,14,14,12,12,14,14,14'); proc report data=reptdata2 nowd split='*' missing style(REPORT)={font_face=Arial font_size=9pt} style(SUMMARY)={font_face=Arial font_size=9pt font_weight=bold}; where decode=:"&decode"; BY byline2 notsorted; column var1 var2 var3 --- more --- var14; define var1 / group noprint; define var2 / group noprint; define var3 / display 'ISIN' style(column)={just=l}; --- more --- define var14 / computed 'some title'; rbreak after / summarize; compute var14; if _break_= '_RBREAK_' then var14 = var13..sum - var12..sum; else net = .; endcomp; TITLE1 j=c 'title1'; TITLE2 j=c "title2"; TITLE3 j=c "title3"; TITLE4 j=c "FOR &rptdate"; title5 #byval(byline2); footnote '&RPage &P of &N'; RUN;
... View more