<?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: Making histogram of the output that i got after running proc freq. in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Making-histogram-of-the-output-that-i-got-after-running-proc/m-p/561909#M10665</link>
    <description>&lt;P&gt;Yes it is possible. However, you don't have to use the PROC FREQ output to do so. you can simply use PROC SGPLOT directly on your data and do something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=A.testrun;
   vbar uncd;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2019 10:41:06 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-05-28T10:41:06Z</dc:date>
    <item>
      <title>Making histogram of the output that i got after running proc freq.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-histogram-of-the-output-that-i-got-after-running-proc/m-p/561904#M10664</link>
      <description>&lt;P&gt;Can i make a histogram in sas of the data that i obtained after running proc freq.&lt;/P&gt;&lt;P&gt;below is the example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data=A.testrun;&lt;BR /&gt;TABLE uncd;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output i got after running the code is in this form (only first two columns are relevant to me):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV align="center"&gt;&lt;DIV class="branch"&gt;&lt;DIV align="center"&gt;&amp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lt;/TD&gt;&lt;TD&gt;1806206&lt;/TD&gt;&lt;TD&gt;100.00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i want to make a histogram which has these values like GN,RT,AD,VC on the X-Axis and The numbers in first column on Y- axis The first column is actually the frequency. Can this be achieved?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 May 2019 10:33:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-histogram-of-the-output-that-i-got-after-running-proc/m-p/561904#M10664</guid>
      <dc:creator>hiteshchauhan1</dc:creator>
      <dc:date>2019-05-28T10:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Making histogram of the output that i got after running proc freq.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-histogram-of-the-output-that-i-got-after-running-proc/m-p/561909#M10665</link>
      <description>&lt;P&gt;Yes it is possible. However, you don't have to use the PROC FREQ output to do so. you can simply use PROC SGPLOT directly on your data and do something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=A.testrun;
   vbar uncd;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 10:41:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-histogram-of-the-output-that-i-got-after-running-proc/m-p/561909#M10665</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-05-28T10:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Making histogram of the output that i got after running proc freq.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-histogram-of-the-output-that-i-got-after-running-proc/m-p/561918#M10666</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&amp;nbsp;working flawlessly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 11:43:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-histogram-of-the-output-that-i-got-after-running-proc/m-p/561918#M10666</guid>
      <dc:creator>hiteshchauhan1</dc:creator>
      <dc:date>2019-05-28T11:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Making histogram of the output that i got after running proc freq.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-histogram-of-the-output-that-i-got-after-running-proc/m-p/561920#M10667</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/271996"&gt;@hiteshchauhan1&lt;/a&gt;, Anytime, glad to help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 11:53:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-histogram-of-the-output-that-i-got-after-running-proc/m-p/561920#M10667</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-05-28T11:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Making histogram of the output that i got after running proc freq.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-histogram-of-the-output-that-i-got-after-running-proc/m-p/561926#M10668</link>
      <description>&lt;P&gt;Hey &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&amp;nbsp;,I think the output that i got is not a histogram and instead a bar chart. :&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 11:51:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-histogram-of-the-output-that-i-got-after-running-proc/m-p/561926#M10668</guid>
      <dc:creator>hiteshchauhan1</dc:creator>
      <dc:date>2019-05-28T11:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Making histogram of the output that i got after running proc freq.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-histogram-of-the-output-that-i-got-after-running-proc/m-p/561928#M10669</link>
      <description>&lt;P&gt;I think you're right. You can use the Histogram Statement directly instead like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=A.testrun;
   histogram uncd;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Use the &lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n17xrpcduau1f8n1c1nhe477pv18.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;PROC SGPLOT Histogram&lt;/A&gt;&amp;nbsp;documentation to improve the plot to your liking &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 11:56:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-histogram-of-the-output-that-i-got-after-running-proc/m-p/561928#M10669</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-05-28T11:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Making histogram of the output that i got after running proc freq.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-histogram-of-the-output-that-i-got-after-running-proc/m-p/561930#M10670</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 11:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-histogram-of-the-output-that-i-got-after-running-proc/m-p/561930#M10670</guid>
      <dc:creator>hiteshchauhan1</dc:creator>
      <dc:date>2019-05-28T11:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Making histogram of the output that i got after running proc freq.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-histogram-of-the-output-that-i-got-after-running-proc/m-p/561931#M10671</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/271996"&gt;@hiteshchauhan1&lt;/a&gt;&amp;nbsp;Did this work for you? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want a more precise code answer, please post a part of your actual data&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 12:01:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-histogram-of-the-output-that-i-got-after-running-proc/m-p/561931#M10671</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-05-28T12:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Making histogram of the output that i got after running proc freq.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-histogram-of-the-output-that-i-got-after-running-proc/m-p/561937#M10672</link>
      <description>&lt;P&gt;The code is working but to create a histogram the data should be numeric and the variable that i am using does not have numeric values. So, not working in my case but nonetheless the code is fine.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 12:09:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-histogram-of-the-output-that-i-got-after-running-proc/m-p/561937#M10672</guid>
      <dc:creator>hiteshchauhan1</dc:creator>
      <dc:date>2019-05-28T12:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Making histogram of the output that i got after running proc freq.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Making-histogram-of-the-output-that-i-got-after-running-proc/m-p/561939#M10673</link>
      <description>&lt;P&gt;Ok. If you need help with variable type conversion, post an example of your data &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 12:14:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Making-histogram-of-the-output-that-i-got-after-running-proc/m-p/561939#M10673</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-05-28T12:14:24Z</dc:date>
    </item>
  </channel>
</rss>

