BookmarkSubscribeRSS Feed
ucvikas
Obsidian | Level 7

I am using proc boxplot for reporting and wanted to make title and footnote in BOLD . also give them my custom font and color . I tried proc template but could not succeed. output destination is PDF file.

I tried to use options in title and footnote statement but that does not work.

Can any one help?

5 REPLIES 5
Reeza
Super User

What did you try? I thought inline formatting works fine for title/footnote statements.

ods pdf file='C:\_localdata\junk2.pdf';

title j=left

      font= 'Times New Roman' color=blue bcolor=red "Leading Grain "

      c=green bold italic "Producers in";

title2 j=center color=red underlin=1

       height=28pt "2"

       height=24pt "0"

       height=20pt "1"

       height=16pt "0";

proc print data=sashelp.class;

run;

footnote j=left height=20pt

       color=red "Prepared "

       c='#FF9900' "on";

footnote2 j=center color=blue

          height=24pt "&sysdate9";

footnote3 link='http://support.sas.com' "SAS";

ods pdf close;

ucvikas
Obsidian | Level 7

Can you try same with proc boxplot with pdf destination?

You can take sample code from SAS/STAT(R) 9.2 User's Guide, Second Edition

and just add your title and footnote.

let me know if you can make title and footnote in bold.

Reeza
Super User

Do you need the title embedded within the graphic? If not, use ods nogtitle I think to push it out which will then work with what I've posted. Otherwise you do have to modify the template(s).

47306 - Using the NOGTITLE option in the ODS PDF statement with SAS® 9.3

ucvikas
Obsidian | Level 7

As per SAS it works starting from 9.3 and I have 9.2.

Reeza
Super User

Ah, it helps if you mention the version in the question, there were a lot of graphical changes in 9.2 to 9.4. I don't have 9.2 to test so hopefully someone else can or you can contact tech support. I recommend tech support at this point.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 5 replies
  • 2666 views
  • 0 likes
  • 2 in conversation