In creating an ods pdf file, with a by group, i find that in the Table of Contents outputted pdf file, i sometimes get bygroup1, bygroup2, etc., and other times the Table of Contents has the actual names of the by groups....and i have no reason why the difference.
The last couple days, it seems stuck in the bygroup1, bygroup2, etc. printout - so, my question:
Any suggestions how to make the Table of Contents print out the actual by group values?
(i've included some stripped-down code, and the pdf created from the code)
options byline;
data a;
school = 'A'; value = 1; output;
school = 'B'; value = 1; output;
run;
ods pdf file='c:\temp\test.pdf' contents;
proc sgplot data=a;
vbar school/response=value;
by school;
run;
ods pdf close;
thanks,
Dave
Hi:
That is odd. When I run a modified version of your code (to control the label on the Top Node and use the By line values) using 9.4M5, I get this:
But even running your original code in 9.4M5 without any changes, I get school=A and school=B, as shown below:
It is odd that when you run the code you get Bygroup1 and Bygroup2. You might want to check with Tech Support. They can run your actual code against your actual data and help you find an answer.
Cynthia
Hi:
That is odd. When I run a modified version of your code (to control the label on the Top Node and use the By line values) using 9.4M5, I get this:
But even running your original code in 9.4M5 without any changes, I get school=A and school=B, as shown below:
It is odd that when you run the code you get Bygroup1 and Bygroup2. You might want to check with Tech Support. They can run your actual code against your actual data and help you find an answer.
Cynthia
Cynthia,
Thank you for the reply. This is odd - tried your code, and still get the ByGroup1, ByGroup2 (and get neither the "Top node" nor the "Graph for School" heading). I do have 9.4M5.
Thanks again, will contact Tech Support.
Dave
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.