BookmarkSubscribeRSS Feed
thanikondharish
Calcite | Level 5

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
Calcite | Level 5
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. 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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