BookmarkSubscribeRSS Feed
Daily1
Quartz | Level 8

i have this type of data

Daily1_0-1689832524773.png

i want 

Daily1_1-1689832604765.png

i have font name but my font not working on my sas eg . font is "DVOT-SurekhMR".

PROC SQL;
   CREATE TABLE WORK.have AS 
   SELECT t1.TOT_GOV_SCH, 
          t1.TOT_GOV_SCH_GRL, 
          t1.TOT_TCHR_GOV_SCH, 
          t1.TOT_TCHR_GOV_SCH_GRL, 
          t1.TOT_BOY_GOV_SCH, 
          t1.TOT_BOY_GOV_SCH_GRL
      FROM Work.temp t1
      ;
QUIT;
ods rtf file="report.rtf" style=styles.minimal bodytitle_aux ;
proc report data= have;
run;

 

3 REPLIES 3
Ksharp
Super User
ods rtf file="c:\temp\report.rtf" style=styles.minimal bodytitle_aux  ;
proc report data=sashelp.class nowd style(column)={fontfamily='DVOT-SurekhMR'};  
run;
ods rtf close;
Daily1
Quartz | Level 8
Not Working. I need on rtf results
ballardw
Super User

@Daily1 wrote:
Not Working. I need on rtf results

"Not working" is awful vague.

Are there errors in the log?: Post the code and log in a code box opened with the "</>" to maintain formatting of error messages.

No output? Post any log in a code box.

Unexpected output? Provide input data in the form of data step code pasted into a code box, the actual results and the expected results. Instructions here: https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat... will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the "</>" icon or attached as text to show exactly what you have and that we can test code against.

 

Note that the reference SAS requires for some fonts may appear a bit differently than what you think the name is. Also since you mention SAS EG then your SAS is likely  actually executing on a server. If that server does not have the font installed then it likely can't be used by EG. So contact your admins about the fonts installed on the server.

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

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 1811 views
  • 2 likes
  • 3 in conversation