Hi, Moises: Without code and data, it is hard to comment on what you're seeing. This original post was over a year old and my recommendation then was for the original poster to work with Tech Support. Your post is asking about ODS PDF, you haven't posted much code or data and the code you did post is incorrect. The statement in SGPLOT is PANELBY...not PANEL (space) BY. The number of pages that are generated and the panels that are generated are going to be impacted by many things, including but not limited to your data (the values for the PANELBY variable, whether you have a BY statement, as well as a PANELBY statement, if you have title and footnote statements, your ODS GRAPHICS options and your System Options, such as the margin settings or orientation. And, in addition, the ODS option of startpage=no doesn't make sense because the size of your image is an entire page, so there's no room for more than 1 graph on the page. Usually you use STARTPAGE=NO to put more than one graph on a page or more than one table on a page. Given all these factors, it is nearly impossible to make a constructive suggestion. And, when I run the code below in SAS 9.4 using ODS PDF I expect and get 3 pages of output, one page for each value of COUNTRY and each page has a paneled graph with 4 panels, one panel for each value of PRODUCT. So I do not experience the behavior you describe. My recommendation is that you work with Tech Support on this. They can look at ALL your code and ALL your data and help you figure out whether you've discovered a defect or whether there is something about your code that is causing an extraneous page. Cynthia ods listing; ** summarize the data so there are 4 products and 1 year; proc means data=sashelp.prdsale mean nway; where year = 1993 and product ne 'BED'; var actual; class month country product; output out=sum_sale mean=actmean; run; ods listing close; proc sort data=sum_sale; by country product month; run; title; footnote; ods _all_ close; options orientation=landscape topmargin=.5in bottommargin=.5in rightmargin=.5in leftmargin=.5in nodate nonumber byline; ods graphics on / reset=all height=7.5 in width=10.5 in border=off antialias=off imagefmt=png; ods pdf file= "c:\temp\all_example.pdf" notoc style=printer nogtitle; proc sgpanel data=sum_sale; by country; panelby product; series x=month y=actmean; format month monyy5.; run; ods pdf close; ods graphics off;
... View more