<?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 tranpose help in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tranpose-help/m-p/459361#M70228</link>
    <description>&lt;P&gt;You forgot the semicolon at the end of your BY statement, so SAS thinks VAR is another variable, not a new statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/207886"&gt;@SasStudent2&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have to Make a demographic table with three different groups. I’m having trouble with the age group. I used Proc Univariate to then transpose. I don’t understand why I keep getting this error message. Am I missing something obvious? Sorry but I’m new to all this! Thank you in advance for your help.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.jpg" style="width: 450px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20311i1EA332B26CA07DC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.jpg" alt="image.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.jpg" style="width: 450px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20312i621CF2710B3AC31A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.jpg" alt="image.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 May 2018 15:19:29 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-05-02T15:19:29Z</dc:date>
    <item>
      <title>Proc tranpose help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tranpose-help/m-p/459358#M70227</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have to Make a demographic table with three different groups. I’m having trouble with the age group. I used Proc Univariate to then transpose. I don’t understand why I keep getting this error message. Am I missing something obvious? Sorry but I’m new to all this! Thank you in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.jpg" style="width: 450px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20311i1EA332B26CA07DC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.jpg" alt="image.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.jpg" style="width: 450px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20312i621CF2710B3AC31A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.jpg" alt="image.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 15:15:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-tranpose-help/m-p/459358#M70227</guid>
      <dc:creator>SasStudent2</dc:creator>
      <dc:date>2018-05-02T15:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tranpose help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tranpose-help/m-p/459361#M70228</link>
      <description>&lt;P&gt;You forgot the semicolon at the end of your BY statement, so SAS thinks VAR is another variable, not a new statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/207886"&gt;@SasStudent2&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have to Make a demographic table with three different groups. I’m having trouble with the age group. I used Proc Univariate to then transpose. I don’t understand why I keep getting this error message. Am I missing something obvious? Sorry but I’m new to all this! Thank you in advance for your help.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.jpg" style="width: 450px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20311i1EA332B26CA07DC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.jpg" alt="image.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.jpg" style="width: 450px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20312i621CF2710B3AC31A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.jpg" alt="image.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 15:19:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-tranpose-help/m-p/459361#M70228</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-05-02T15:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tranpose help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tranpose-help/m-p/459369#M70229</link>
      <description>&lt;P&gt;Answer me one question first if you will, is taking a photo of your screen and uploading pictures to the forum easier than simply copy and pasting some text?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 15:29:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-tranpose-help/m-p/459369#M70229</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-02T15:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tranpose help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tranpose-help/m-p/459371#M70230</link>
      <description>THANK YOU SO MUCH! I hate those semicolons.</description>
      <pubDate>Wed, 02 May 2018 15:31:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-tranpose-help/m-p/459371#M70230</guid>
      <dc:creator>SasStudent2</dc:creator>
      <dc:date>2018-05-02T15:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tranpose help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tranpose-help/m-p/459372#M70231</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/207886"&gt;@SasStudent2&lt;/a&gt;&amp;nbsp;Kindly mark&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;'ssolution as answered and close the thread.&amp;nbsp; Although, nice of you to acknowledge the help with a "thank you"&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 15:38:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-tranpose-help/m-p/459372#M70231</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-05-02T15:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tranpose help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tranpose-help/m-p/459375#M70232</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/207886"&gt;@SasStudent2&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have to Make a demographic table with three different groups. &lt;STRONG&gt;&lt;FONT color="#0000ff" size="4"&gt;I’m having trouble with the age group. &lt;/FONT&gt;&lt;/STRONG&gt;I used Proc Univariate to then transpose. I don’t understand why I keep getting this error message. Am I missing something obvious? Sorry but I’m new to all this! Thank you in advance for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What specific trouble are you having with the agegroup?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the whole purpose of this exercise is to make a report table consider one of the report procedures like Proc Tabulate or Proc Report which will both do simple statistics and grouping.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is always a good idea to provide a little example data so we know what variables you have, what type they are and the structure of your data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Guessing here but I might start with&lt;/P&gt;
&lt;PRE&gt;proc tabulate data=demog;
   class trt;
   class race;
   class gender;
   var age;
   table (race gender)*(n mean std max min),
         trt* age
         ;
run;&lt;/PRE&gt;
&lt;P&gt;Grouping is done by values of the class variables in proc tabulate, so each value of race and gender in this example, will have the statistics calculated for age under a column for each level of the trt variable. Different orders of values can be accomplished with moving class variables from row to column and the group of statistics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 15:40:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-tranpose-help/m-p/459375#M70232</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-05-02T15:40:28Z</dc:date>
    </item>
  </channel>
</rss>

