Hi,
what exactly is the syntax with PROC TEMPLATE to change the number of decimals displayed in the output. For example, in the FitStatistics table of PROC REG (template Stat.REG.FitStatistics) display the value of R-square (which is cValue2 in the table) with 2 decimals instead of the usual 4 decimals.
Thanks!
Well, that template inherits from Factoid, then from common Factoid. When I look at that template in sashelp.tmplcommon, it has its own subdirectories with value and label, code for value is:
proc template;
define column Common.Column.Factoid.Value / store = SASHELP.TMPLCOMMON;
notes "Default Factoid value column";
dynamic value_just wmin wmax;
width_max = wmax;
width = wmin;
just = value_just;
end;
run;
So I am thinking that you want to change width_max or width. Never used this one myself though.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.