Hi, I am using SAS 9.1.3, and here is the test code: test code goptions reset=all ; options orientation=portrait; ods listing close; ods pdf startpage=never; ods pdf file="C:\aa.pdf" ; ** A Listing; proc print data=sashelp.class; run; ** A graph; symbol v=dot h=2 c=blue; proc gplot data=sashelp.class; plot height*weight; run; quit; ods pdf close; ods listing; And here is the result: It seems that when creating the graph, SAS takes the whole page as the canvas and it didn't 'see' that a listing was already on the page. Question is: is there a way to make SAS automatically display the graph right after the listing? For example, suppose we need to create a 4inch*3inch scatterplot, if there's a listing(PROC PRINT) before the GPLOT, then display the graph after the listing; if there's no listing, then directly display the graph at the top of the page. Any help will be highly appreciated, thanks!!!
... View more