There is no just a single option in SAS Studio that increases the font size in the Results viewer window, here are a couple of options for you...
SAS Studio uses the ODS HTML destination by default to display HTML output in the Results viewer window. It uses a default style we call HTMLBLUE. One option is to change the default style to something other than HTMLBLUE (ie, a style that produces larger text by default). To do this, in the upper right hand corner of SAS Studio (just to the right of the "Sign Out" button), click the down arrow in the "more application options" button and choose PREFERENCES and then RESULTS. Here, you can change the default style. For example, the DEFAULT style uses a larger font size than HTMLBLUE.
Another option is to use specific options in the code to increase the font size used in the Results viewer window. Here is an example of how to do this with PROC PRINT:
proc print data=sashelp.class
style(data header n obs obsheader table)={fontsize=14pt};
run;
Styles in general contain a lot of information, font face, size and weight are just some of them.
You can use proc template to modify an existing (or for the truly optimistic create a style from scratch) to make a customized version.
This is an example of getting the listing of a style. Replace Meadow with the style of interest.
proc template; source styles.meadow; run;
By default the listing of the description will appear in the log.
You would use something similar to:
proc template; define style mymeadow; parent style.meadow; style BodyText from NormalText / fontsize = 19pt fontfamily = "<sans-serif>, <MTsans-serif>, sans-serif" color = black; end; run;
to replace the fontsize of bodytext to size 19 from the default 9 (in the case of the meadow style as installed on my computer).
Find the blocks of text in your style with font sizes and copy them to code as above and then change as desired.
Your style may have the specific font inherited from another style which would appear in a Parent= statement in the generated source.
You may need to look in that style as well and copy the style block(s) of interest.
Or use style overrides in Proc Print, Report or Tabulate.
Changing a style will affect any output using that style and you could make it the default style for your system if desired.
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!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.