BookmarkSubscribeRSS Feed
mmohotsi
Quartz | Level 8

How can I assign a unicode the same font and and style as the title statement for a pdf report.

 

I have this code to try the procedure. I need the UNICODE to have the same style font and color to the text in the title statement.

 

My code is as below

 

Data tsets;
input name $;
cards;
Carbon
Copper
Lithium
Arsenic
;
run;


ods escapechar='^';
%let home = 'C:\Users\mmohotsi\OneDrive - Rand Water\Desktop\Deleted';

%let home = '<path>';


ods pdf file="&home\report..pdf";

 

title 'Improving special characters like ^{unicode 03C7} and ^{unicode 03BC}g/l and ^{unicode 03B3}';

proc report data=tsets;
run;

6 REPLIES 6
Ksharp
Super User
Data tsets;
input name $;
cards;
Carbon
Copper
Lithium
Arsenic
;
run;


ods escapechar='^';
%let home = c:\temp ;

ods pdf file="&home\report.pdf";

title 'Improving special characters like ^{style [fontfamily=calibri fontweight=bold color=red] ^{unicode 03C7}} and ^{unicode 03BC}g/l and ^{unicode 03B3}';

proc report data=tsets;
run;
ods pdf close;

Ksharp_0-1769072558620.png

 

Tom
Super User Tom
Super User

Sounds like you need to find a FONT that has both the normal letters and also Greek mu and gamma.

Screenshot 2026-01-22 at 10.40.38 AM.png

mmohotsi
Quartz | Level 8
Yes indeed
The customer seeks a special character that is normal. Could be Arial or any normal font.
Tom
Super User Tom
Super User

The default FONT used by SAS/Studio setup for SAS ODA makes the Greek characters the same as the Latin ones when I run your program.

Screenshot 2026-01-23 at 11.39.13 AM.png

Looks like that might be using TIMES as the FONT.

mmohotsi
Quartz | Level 8

I am still using Enterprise guide.

 

Does this mean I cannot use a FONT of my choice?

Tom
Super User Tom
Super User

Read up on how ODS templates and styles work.

You should be able to change the template or individual styles used.  Different templates might use different fonts.

You can also override the font used by a template by setting a specific font using ODS style settings. 

 

Here are the styles used by default in SAS ODA.  Perhaps you could try those?

Screenshot 2026-01-27 at 12.54.32 PM.png

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
  • 6 replies
  • 351 views
  • 0 likes
  • 3 in conversation