sas - How to have multiple graphs generated by one gplot procedure output to a single PDF file? -


the following gplot procedure generates many graphs(it gives sales different product). if product has 'sofa', 'bed', 'chairs', give 3 graphs, 1 sofa, 1 chairs, 1 bed.

i'd have 3 graphs generated output 1 single pdf file. tried following, keep last graph generated. ideas how can this?

ods pdf file= 'output.pdf';     proc gplot data = ab.temp;      plot sales*months=product; region; run; ods pdf close; 

thanks!

sandwich code between ods pdf , ods pdf close statements.

ods pdf file='my_file.pdf' style=meadow;  proc gplot data = ab.temp;  plot sales*months=product; region; run;  ods pdf close; 

does work you? if so, have wrong in code. post code , log in case.

proc sort data=sashelp.cars out=cars; origin; run;  ods pdf file="c:\_localdata\temp.pdf" style=meadow;  proc gplot data=cars; plot mpg_city*msrp=make; origin; run;  ods pdf close; 

Comments