The SAS Output Delivery System and reporting techniques

Changing the number of decimals displayed

Reply
Occasional Contributor
Posts: 7

Changing the number of decimals displayed

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!

Super User
Super User
Posts: 7,695

Re: Changing the number of decimals displayed

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.

Frequent Contributor
Posts: 117

Re: Changing the number of decimals displayed

Hi,

Pls refer this path

SAS/STAT(R) 9.2 User's Guide, Second Edition

Rgds,

Vish

Ask a Question
Discussion stats
  • 2 replies
  • 644 views
  • 0 likes
  • 3 in conversation