<?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 Re: PROC REPORT in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT/m-p/904957#M40414</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/456544"&gt;@kcvaldez98&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class=""&gt;ERROR: There is &lt;FONT color="#FF0000"&gt;more than one statistic&lt;/FONT&gt; associated&lt;/DIV&gt;
&lt;DIV class=""&gt;with the column defined by the following elements.&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can only have one statistic per variable in a DEFINE statement. You can't request two (or more) statistics per variable in a single DEFINE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In PROC REPORT, you can use an ALIAS to get multiple statistics for a single original variable. See this example:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/proc/n0ldy84v9j7463n1jjkloe7av38c.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/proc/n0ldy84v9j7463n1jjkloe7av38c.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2023 19:45:49 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-11-28T19:45:49Z</dc:date>
    <item>
      <title>PROC REPORT</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT/m-p/904956#M40413</link>
      <description>&lt;P&gt;Hi SAS coders,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having trouble with this code:&lt;/P&gt;&lt;DIV&gt;PROC REPORT DATA=COLANLYS.COMBINED_ANALYSIS;&lt;/DIV&gt;&lt;DIV&gt;COLUMN demo_edupctn3(MEAN,STD) demo_povpctn (MEAN,STD) riskfactors_countyestimate (MEAN,STD)&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;outcomes_adults_mental_distr (MEAN,STD);&lt;/DIV&gt;&lt;DIV&gt;DEFINE demo_edupctn3 &amp;nbsp;/ ANALYSIS MEAN STD FORMAT=4.1;&lt;/DIV&gt;&lt;DIV&gt;DEFINE demo_povpctn &amp;nbsp;/ ANALYSIS MEAN STD FORMAT=4.1;&lt;/DIV&gt;&lt;DIV&gt;DEFINE riskfactors_countyestimate / ANALYSIS MEAN STD FORMAT=4.1;&lt;/DIV&gt;&lt;DIV&gt;DEFINE outcomes_adults_mental_distr / ANALYSIS MEAN STD FORMAT=4.1;&lt;/DIV&gt;&lt;DIV&gt;RBREAK AFTER / SUMMARIZE;&lt;/DIV&gt;&lt;DIV&gt;RUN;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;It gives me an error that says:&lt;/P&gt;&lt;DIV class=""&gt;ERROR: There is more than one statistic associated&lt;/DIV&gt;&lt;DIV class=""&gt;with the column defined by the following elements.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Please advise on what I am doing wrong.&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Nov 2023 19:40:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT/m-p/904956#M40413</guid>
      <dc:creator>kcvaldez98</dc:creator>
      <dc:date>2023-11-28T19:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT/m-p/904957#M40414</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/456544"&gt;@kcvaldez98&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class=""&gt;ERROR: There is &lt;FONT color="#FF0000"&gt;more than one statistic&lt;/FONT&gt; associated&lt;/DIV&gt;
&lt;DIV class=""&gt;with the column defined by the following elements.&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can only have one statistic per variable in a DEFINE statement. You can't request two (or more) statistics per variable in a single DEFINE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In PROC REPORT, you can use an ALIAS to get multiple statistics for a single original variable. See this example:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/proc/n0ldy84v9j7463n1jjkloe7av38c.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/proc/n0ldy84v9j7463n1jjkloe7av38c.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 19:45:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT/m-p/904957#M40414</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-11-28T19:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT/m-p/905038#M40416</link>
      <description>&lt;P&gt;Thank you for helping me with that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed that SAS documentation, but I ran into some things I need help with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MY code is this:&lt;/P&gt;&lt;DIV&gt;PROC REPORT DATA=COLANLYS.COMBINED_ANALYSIS;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;COLUMN N demo_edupctn3 = sd1&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;demo_povpctn = sd2 riskfactors_countyestimate = sd3&lt;/DIV&gt;&lt;DIV&gt;outcomes_adults_mental_distr=sd4;&lt;/DIV&gt;&lt;DIV&gt;DEFINE N &amp;nbsp;/ 'N';&lt;/DIV&gt;&lt;DIV&gt;DEFINE demo_edupctn3 &amp;nbsp;/ ANALYSIS MEAN FORMAT=4.1;&lt;/DIV&gt;&lt;DIV&gt;DEFINE sd1 &amp;nbsp;/ ANALYSIS STD FORMAT = 5.1;&lt;/DIV&gt;&lt;DIV&gt;DEFINE demo_povpctn &amp;nbsp;/ ANALYSIS MEAN FORMAT=4.1;&lt;/DIV&gt;&lt;DIV&gt;DEFINE sd2 &amp;nbsp;/ ANALYSIS STD FORMAT = 5.1;&lt;/DIV&gt;&lt;DIV&gt;DEFINE riskfactors_countyestimate / ANALYSIS MEAN FORMAT=4.1;&lt;/DIV&gt;&lt;DIV&gt;DEFINE sd3 &amp;nbsp;/ ANALYSIS STD FORMAT = 5.1;&lt;/DIV&gt;&lt;DIV&gt;DEFINE outcomes_adults_mental_distr / ANALYSIS MEAN FORMAT=4.1;&lt;/DIV&gt;&lt;DIV&gt;DEFINE sd4 &amp;nbsp;/ ANALYSIS STD FORMAT = 5.1;&lt;/DIV&gt;&lt;DIV&gt;RUN;&lt;/DIV&gt;&lt;DIV&gt;My output looks like this:&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2023-11-28 at 2.41.48 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90405i3207F311AE163870/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2023-11-28 at 2.41.48 PM.png" alt="Screen Shot 2023-11-28 at 2.41.48 PM.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;I want it where it shows the MEANS and Standard deviations and I think this is only standard deviations.&lt;/DIV&gt;&lt;DIV&gt;Please advise.&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Nov 2023 21:44:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT/m-p/905038#M40416</guid>
      <dc:creator>kcvaldez98</dc:creator>
      <dc:date>2023-11-28T21:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT/m-p/905039#M40417</link>
      <description>&lt;P&gt;you have to put the variable for the means into the COLUMN statement.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 21:49:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT/m-p/905039#M40417</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-11-28T21:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT/m-p/905040#M40418</link>
      <description>Would that also be an alias variable or the original variable that I am looking at?</description>
      <pubDate>Tue, 28 Nov 2023 21:52:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT/m-p/905040#M40418</guid>
      <dc:creator>kcvaldez98</dc:creator>
      <dc:date>2023-11-28T21:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT/m-p/905155#M40427</link>
      <description>&lt;P&gt;Follow the example shown in the link I gave.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There, there is a variable name (and in the DEFINE statement the statistic SUM is specified), followed by two aliases, one for statistic MIN and one for statistic MAX.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 13:13:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT/m-p/905155#M40427</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-11-29T13:13:01Z</dc:date>
    </item>
  </channel>
</rss>

