I'm working on creating a large pdf. I need page numbers on all pages. I am able to see page number using the option number on pages which are generated using the style template. Pages that are generated using Proc Gchart have no page numbers. I am using device=sasprtc in my Goptions if that matters. Any thoughts or help would be greatly appreciated.
You may want to check with Tech Support and see whether this is a known issue and what the workaround might be. However, I can create a PDF file using ODS and SAS 9.1.3 and the output file -does- have page numbers using either the ACTXIMG driver or the JAVAIMG driver, following the model syntax below.
ods listing close;
options nodate number orientation=landscape;
ods pdf file='c:\temp\pg_ax.pdf' ;
goptions reset=all border device=actximg;
** SAS report code;
** SAS/Graph code;
** more report code;
** more graph code;
Thanks for taking a look at it. My code is pretty much identical except the device. I will contact tech support. Would it be possible to get the page numbers using ods document? I'm going to need to use that anyway to format my bookmarks. Thanks again.
It may be easier all around for you to use actximg or javaimg drivers, at least, in SAS 9.1 because the 9.1 info says that:
If one of the following GOPTIONS DEVICE values
is in effect when a graph created by a SAS/GRAPH procedure is stored in an ODS document, the graph's data and template will be stored. Instead of containing a reference to an external GRSEG, the persisted output object will be a fully self-describing internal graph that subsequently can be replayed to HTML, RTF, PDF, etc.
Since I did get page numbers with both the javaimg and actximg drivers -- it may be that if you switched to javaimg or actximg with ODS DOCUMENT, that you'd be OK (depending on what version of SAS you're running).
I did observe your same behavior in SAS 9.1.3, when I used the SASPRTC driver -- that there were no page numbers in the PDF pages with the graphical output. I don't know whether that behavior is the same in SAS 9.2 or not. And, with the use of the ODS GRAPHICS FRAMEWORK in SAS 9.2, I believe that your graph information is stored in a GRSEG entry in 9.2. That's yet another reason to contact Tech Support because you want to use code and drivers that work for your current level of SAS.
Whenever I use ODS HTML, RTF or PDF, I always use ACTXIMG or JAVAIMG drivers to create my graphical output. I find that the graphics look better in SAS 9.1.3 and I have fewer GOPTIONS to worry about since the SAS style template controls fonts and colors which means that my graph colors are compatible with my report colors.