I want to increase fontsize for all ods text= statements. How to do? The following code does not do it but gives no error either.
Thank you. MM
ods text="^{style[font_face='calibri' fontsize=12pt] ";
ods text="Logistic Model log[ p/(1-p) ] = -3.0763 + .0687D + 1.6589T";
Put it all together .
ods escapechar='^'; ods text="^{style [font_face=calibri fontsize=40pt] Logistic Model log[ p/(1-p) ] = -3.0763 + .0687D + 1.6589T }"; proc print data=sashelp.class;run;
If you have a lot of text to display you might consider using Proc Odstext.
A brief example:
Proc ODStext; p "Deviance/df =1.1773 ~ 1 with p-value=.2628 (not significant at .05 level). Logistic Model log[ p/(1-p) ] = -3.0763 + .0687D + 1.6589T } Model Convergence is satisfied. Hosmer and Lemeshow GOF test chi-square=5.2854 with 6 df and p-value=.5078(not significant at .05 level). No standardized residual is large in absolute value (>3). All predicted values are plausible (Bounds are between 0 and 1). It seems that the model does fit well."; run;
The p you see is the start of a paragraph. You can use multiple P statements to start each paragraph. Text will wrap but note that continuation lines that do not start with a blank usually do not have a space before the text on the previous line.
You can provide style elements that affect the entire text as an option after the text of the P.
Proc ODSTEXT will also use a data set as source for the statements and can do some interesting things. The data set may be appropriate if you dump some standard variables from models or analysis procs (your p-values and model text for example). Then some of the output would be boilerplate and the rest the custom result from your data.
One additional advantage is the proc does not require some other procedure following to generate output in the destination like Ods text seems to require.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.