I am creating PDFs using ODS with two graphs per page. Both graphs have the same value for a type variable, 'month' below. I want to create a TOC bookmark for each page, which refers to the value of the highest-level variable ('year' below). There could be any number of values for 'year', but only two 'month' values per year. I don't want multiple levels of bookmarks, just one per page.
I looked at ODS document, but I don't know if it is possible to use that for this purpose if I have an indefinite number of graphs.
Here is what I have now:
data new;
do year = 1 to 5;
do month = 1 to 2;
do day = 1 to 10;
emp = year*month*day;
output;
end;
end;
end;
run;
ods pdf file='K:\brent\test_graphs_pages.pdf' startpage=never;
proc sgplot data=new;
by year month;
series x = day y = emp;
run;
ods pdf close;
It is giving me three levels of bookmarks, and two bookmarks per page. How can I get just one per page? Also, why does the bookmark for year 2 link to the page with year 1 on it?
Thanks