sas

How to change the font size in a SAS put statement


data _NULL_;
    file print;
    if e then put 'No observations';
    set TableA end=e;
    put 'here is the table A';
    stop;
run;

How do I change font size and color for the quotes in the put statement?


Solution

  • In general you might want to use graphics options on a title statement.

    However, ODS output can be modified with inline styling directives introduced via the escapechar.

    ods pdf file='want.pdf';
    
    ods escapechar = '^';
    
    * standard options for title statement;
    title color=white bcolor=blue bold italic height=36pt "Title for want";
    
    data _null_;
      file print;
      put '^{style [fontsize=24pt color=Red]Hi}';  * inline styling;
    run;
    
    ods pdf close;