ODS and Base Reporting

Build reports by using ODS to create HTML, PDF, RTF, Excel, text reports and more!
BookmarkSubscribeRSS Feed
Jima
Calcite | Level 5

I am trying to format a PDF TOC. Here is an example of the output:

Jima_0-1648325873854.png

I would like to change the font size, font style, and so on. Also, I would like to change the TOC to read:

 

Ten-Year Fall Enrollments

   Chart1a.....

   Chart 1b...

and so on.

 

Any suggestions?

Here is a copy of the statements:

options orientation = landscape nodate;

ods pdf file = "&drive.\&dir.\urp01x.pdf"
pdftoc=1 uniform contents=yes;
ods escapechar='~';
options nonumber;

goptions ftitle='Swissb' fby='Swissb' hby=2.2;

options nonumber printerpath=pdf;

ods proclabel "Ten-Year Fall Enrollments" ;

proc sgplot data=urp.tenyrs_stud pctlevel=group
description="Chart 1a: Ten-Year Fall Enrollment by Race/Ethinicity";
vbar year / group=racex groupdisplay=stack;
&color5.;
label racex = 'Race/Ethincity'
year = 'Year';
run;

ods proclabel "Ten-Year Fall Enrollments";

proc sgpanel data=urp.tenyrs_stud description="Chart 1b: Ten-Year Fall Enrollment by Gender and Race/Ethinicity";
where gender in ('M','1','F','2');
panelby gender;
vbar year / group=racex groupdisplay=stack;
&color5.;
label racex = 'Race/Ethincity'
year = 'Year'
gender = 'Gender';
format gender $gender.;
run;

ods pdf close;

3 REPLIES 3
ghosh
Barite | Level 11

I find your code hard to read, you should use the running man icon to paste it.

 

I have always found this paper quite helpful in formatting my TOC

 

https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/4265-2020.pdf

Jima
Calcite | Level 5

Thanks for your reply.

Somehow I missed the paper you mentioned in my searches. I will take a look at it.

 

You noted "I find your code hard to read, you should use the running man icon to paste it." I am confused by this statement. Can you elaborate?

 

ghosh
Barite | Level 11

This icon on the message editor is for pasting code

ghosh_0-1649006928852.png

 

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1175 views
  • 0 likes
  • 2 in conversation