<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Proc Means Summary Report aesthetic in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Means-Summary-Report-aesthetic/m-p/744169#M233096</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am writing a program in SAS, and using Proc means data=some name to display the output in pdf report.&lt;/P&gt;&lt;P&gt;I am renaming the variables with label statement. One label name is quite long and at the time of getting printed in pdf it is being displayed in 2 lines rather than 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need this way:&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 May 2021 14:45:12 GMT</pubDate>
    <dc:creator>adityagupta5</dc:creator>
    <dc:date>2021-05-27T14:45:12Z</dc:date>
    <item>
      <title>Proc Means Summary Report aesthetic</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Means-Summary-Report-aesthetic/m-p/744169#M233096</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am writing a program in SAS, and using Proc means data=some name to display the output in pdf report.&lt;/P&gt;&lt;P&gt;I am renaming the variables with label statement. One label name is quite long and at the time of getting printed in pdf it is being displayed in 2 lines rather than 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need this way:&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 14:45:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Means-Summary-Report-aesthetic/m-p/744169#M233096</guid>
      <dc:creator>adityagupta5</dc:creator>
      <dc:date>2021-05-27T14:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Means Summary Report aesthetic</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Means-Summary-Report-aesthetic/m-p/744177#M233102</link>
      <description>You don't have control when you use PROC MEANS and the default procs. &lt;BR /&gt;&lt;BR /&gt;Pipe your results to a table and then use PROC REPORT or PRINT to display them cleanly. You may also have more control in PROC TABULATE.</description>
      <pubDate>Thu, 27 May 2021 14:55:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Means-Summary-Report-aesthetic/m-p/744177#M233102</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-05-27T14:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Means Summary Report aesthetic</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Means-Summary-Report-aesthetic/m-p/744195#M233116</link>
      <description>&lt;P&gt;You "picture" in the attachment showed no details of what the "report" might actually look like so can't provide a better targeted example.&lt;/P&gt;
&lt;P&gt;Here is an example of using Proc Tabulate to display some statistics and controlling the width of the area the labels appear in.&lt;/P&gt;
&lt;PRE&gt;Proc tabulate data=sashelp.class;
   class sex;
   classlev sex/ style=[width=1.5in];
   label sex='Student Sex';
   var height;
   table sex,
         height='Student Height'*{style=[width=3in]}*(mean  min max stddev)
   ;
run;&lt;/PRE&gt;
&lt;P&gt;You should have the SASHELP.Class data set available and can run this code.&lt;/P&gt;
&lt;P&gt;This demonstrates two different types of labels for Class (grouping variables) and Var (analysis variables).&lt;/P&gt;
&lt;P&gt;The Classlev statement overrides the default (i.e. the procedure generic code) for setting the width of the column that the variable Sex label and values appear in. In this case I set that 1.5 inches. The example for height shows using table options to 1) override the default Label in line without use of a label statement and 2) how to override the width, setting it to 3 inches in this case to make it fairly obvious that we can set widths much longer than actually needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc Tabulate pretty much does all the statistics that Proc Means/Summary does as well as some percentages.&lt;/P&gt;
&lt;P&gt;You can also "nest" in multiple dimensions and request multiple different tables in one procedure call. Tradeoffs: you have to explicitly state a variable is either a Class or Var variable and only those are used in the table(s). Any observation with a missing value for one or more of the class variables is excluded from the summary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 15:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Means-Summary-Report-aesthetic/m-p/744195#M233116</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-05-27T15:45:17Z</dc:date>
    </item>
  </channel>
</rss>

