<?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: Transposing proc freq in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Transposing-proc-freq/m-p/552893#M74631</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-04-22-19-59-04-142.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28885iA4D376F4B00F5F4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-04-22-19-59-04-142.jpg" alt="2019-04-22-19-59-04-142.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;This is the mock o/p.Values i have written are not accurate but it should follow the same format throughout.&lt;/P&gt;&lt;P&gt;how can i do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2019 15:09:13 GMT</pubDate>
    <dc:creator>AKHILA</dc:creator>
    <dc:date>2019-04-22T15:09:13Z</dc:date>
    <item>
      <title>Transposing proc freq</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transposing-proc-freq/m-p/552774#M74627</link>
      <description>&lt;P&gt;I have a dataset like this&lt;BR /&gt;Id var cat n value&lt;BR /&gt;1 var1 cat1 1 A&lt;BR /&gt;2 var2 cat2 2 B&lt;BR /&gt;3 var3 cat3 1 C&lt;BR /&gt;4 var4 cat1 1 A&lt;BR /&gt;5 var5 cat2 2 B&lt;BR /&gt;6 var6 cat3 2 C&lt;BR /&gt;7 var7 cat1 1 A&lt;BR /&gt;8 var8 cat2 1 B&lt;BR /&gt;9 var9 cat3 2 C&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The required o/ p looks like this&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;N=1&amp;nbsp; &amp;nbsp; n=2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; n=1&amp;nbsp; &amp;nbsp; &amp;nbsp;n=2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; n=1&amp;nbsp; &amp;nbsp; &amp;nbsp; n=2&lt;BR /&gt;Cat1&lt;BR /&gt;Var1&amp;nbsp; &amp;nbsp; &amp;nbsp; xx (xx)&amp;nbsp; xx(xx)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xx (xx)&amp;nbsp; xx(xx)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xx (xx) xx(xx)&lt;/P&gt;&lt;P&gt;Var4&amp;nbsp; &amp;nbsp; &amp;nbsp; xx (xx)&amp;nbsp; xx(xx)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xx (xx) xx(xx)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xx (xx) xx(xx)&lt;BR /&gt;Var7&amp;nbsp; &amp;nbsp; &amp;nbsp;xx (xx)&amp;nbsp; xx(xx)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xx (xx) xx(xx)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xx (xx) xx(xx)&lt;BR /&gt;Cat2&lt;BR /&gt;Var2&amp;nbsp; &amp;nbsp; &amp;nbsp;xx (xx)&amp;nbsp; xx(xx)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xx (xx) xx(xx)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xx (xx) xx(xx)&lt;BR /&gt;Var5&amp;nbsp; &amp;nbsp; &amp;nbsp;xx (xx)&amp;nbsp; xx(xx)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xx (xx) xx(xx)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xx (xx) xx(xx)&lt;BR /&gt;Var8&amp;nbsp; &amp;nbsp; &amp;nbsp; xx (xx)&amp;nbsp; xx(xx)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xx (xx) xx(xx)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xx (xx) xx(xx)&lt;BR /&gt;Cat3&lt;BR /&gt;Var3&amp;nbsp; &amp;nbsp; &amp;nbsp; xx (xx)&amp;nbsp; xx(xx)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xx (xx) xx(xx)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xx (xx) xx(xx)&lt;BR /&gt;Var6&amp;nbsp; &amp;nbsp; &amp;nbsp; xx (xx)&amp;nbsp; xx(xx)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xx (xx) xx(xx)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xx (xx) xx(xx)&lt;BR /&gt;Var9&amp;nbsp; &amp;nbsp; &amp;nbsp; xx (xx)&amp;nbsp; xx(xx)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xx (xx) xx(xx)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xx (xx) xx(xx)&lt;BR /&gt;&lt;BR /&gt;Where xx(xx) refers to counts of each var with percentages in braces.&lt;BR /&gt;Someone please help me with a soln.&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 15:15:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transposing-proc-freq/m-p/552774#M74627</guid>
      <dc:creator>AKHILA</dc:creator>
      <dc:date>2019-04-22T15:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing proc freq</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transposing-proc-freq/m-p/552807#M74628</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My eyes don't really relate to the desired solution you have typed. I can't grasp it unless you type it in with appropriate spacing so it actually looks like a real table that SAS might output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you spend some time providing such a properly spaced output that looks like an actual table by typing what you want into the window that appears when you click on the {i} icon, which will preserve the spacing, and make the results look like an actual table.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 12:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transposing-proc-freq/m-p/552807#M74628</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-04-22T12:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing proc freq</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transposing-proc-freq/m-p/552816#M74629</link>
      <description>Hi:&lt;BR /&gt;  It looks to me like you want some type of demograhic report, possibly with the N and PCTN like N (PCTN) -- when you need to concatenate statistics, you need to do more than just transpose PROC FREQ output, you usually need to perform some other data manipulation.&lt;BR /&gt;&lt;BR /&gt;  I wonder whether your desired report is actually correct, you have three values of A, B, C and 2 values of N 1 and 2 so if you are nesting N under VALUE, then you should have 6 columns across, but you only have 5.&lt;BR /&gt;&lt;BR /&gt;  I think this paper might help you. Look at example 1 and example 8 in the paper.&lt;A href="https://support.sas.com/resources/papers/proceedings/pdfs/sgf2008/173-2008.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings/pdfs/sgf2008/173-2008.pdf&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Mon, 22 Apr 2019 12:53:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transposing-proc-freq/m-p/552816#M74629</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-04-22T12:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing proc freq</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transposing-proc-freq/m-p/552819#M74630</link>
      <description>&lt;P&gt;It looks like a STDM report.&lt;/P&gt;
&lt;P&gt;Here is an example , Hope you could learn something from it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Table-format-final-output/m-p/552646#M153624" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Table-format-final-output/m-p/552646#M153624&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 13:07:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transposing-proc-freq/m-p/552819#M74630</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-04-22T13:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing proc freq</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transposing-proc-freq/m-p/552893#M74631</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-04-22-19-59-04-142.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28885iA4D376F4B00F5F4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-04-22-19-59-04-142.jpg" alt="2019-04-22-19-59-04-142.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;This is the mock o/p.Values i have written are not accurate but it should follow the same format throughout.&lt;/P&gt;&lt;P&gt;how can i do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 15:09:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transposing-proc-freq/m-p/552893#M74631</guid>
      <dc:creator>AKHILA</dc:creator>
      <dc:date>2019-04-22T15:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing proc freq</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transposing-proc-freq/m-p/552901#M74632</link>
      <description>&lt;P&gt;Hi mam,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I have edited my post.Hope that is in a proper way to understand.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 15:17:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transposing-proc-freq/m-p/552901#M74632</guid>
      <dc:creator>AKHILA</dc:creator>
      <dc:date>2019-04-22T15:17:47Z</dc:date>
    </item>
  </channel>
</rss>

