Define the table Base.Summary. The ODS PATH statement specifies which item store to search first for the table template. The DEFINE TABLE statement creates a new table template Base.Summary. The new table template Base.Summary is written to the WORK.TEMPLAT item store.
ods path work.templat (update) sashelp.tmplmst (read); proc template; define table Base.Summary; notes "Summary table for MEANS and SUMMARY"; dynamic clmpct one_var_name one_var_label one_var; column class nobs id type ways (varname) (label) (min) (max) (range) (n ) (nmiss) (sumwgt) (sum) (mean) (uss) (css) (var) (stddev) (cv) ( stderr) (t) (probt) (lclm) (uclm) (skew) (kurt) (median) (mode) (q1) (q3) (qrange) (p1) (p5) (p10) (p25) (p50) (p75) (p90) (p95) (p99); define nobs; style={color=magenta backgroundcolor=white}; end; end; run; ods html file="temp.html"; proc summary data=exprev print; class Sale_Type; run; ods html close;