BookmarkSubscribeRSS Feed
thanikondharish
Fluorite | Level 6

ods escapechar='~' ;
ods pdf file='D:\phani\ss1.pdf' ;
ODS PDF TEXT="~S={JUST=l FONT_SIZE=14pt COLOR=RED font_weight=bold FONT_FACE='Courier New' }SAS"
"~S={JUST=l FONT_SIZE=14pt font_weight=bold COLOR=ORANGE FONT_FACE='Courier New' }COMMUNITIES";
ods pdf close ;

 

 

I want to give two text formats with different colors in ods pdf text. If i run above program I dont get the result then how to get two formats

at time 

3 REPLIES 3
Reeza
Super User
The error is not with the color portion of that command. That part is correct.
thanikondharish
Fluorite | Level 6
i want to give 2 strings one is sas and second one is communities and they
should be in different colors how can i do
Reeza
Super User

You specify different colours with the COLOR= option. That part of your code is correct. Your error is elsewhere in your code. 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 1321 views
  • 0 likes
  • 2 in conversation