<?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: histogram in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163790#M263518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The do loop is not necessary after using the TRANSPOSE procedure. The data set would appear as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to keep the variable label for each observation, just remove "drop=_name_" from the code I previously posted and the result is as follows.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;IMG alt="result.PNG" class="jive-image" src="https://communities.sas.com/legacyfs/online/8565_result.PNG" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;The _name_ variable is not necessary for generating the histogram, but you can keep it if you like. The code for generating the histogram is:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P&gt;proc univariate data=histo;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; var s;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; histogram;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Dec 2014 19:22:10 GMT</pubDate>
    <dc:creator>StatsGeek</dc:creator>
    <dc:date>2014-12-29T19:22:10Z</dc:date>
    <item>
      <title>histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163780#M263508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,please how to construct a histogram for a set of means say X1-X1000 that Ihave calculated?&lt;/P&gt;&lt;P&gt;I did the following:&lt;/P&gt;&lt;P&gt;proc univariate data=pop;&lt;/P&gt;&lt;P&gt;var mn_X1-mn_X1000;&lt;/P&gt;&lt;P&gt;histogram;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;where mn_x means the mean of x1&lt;/P&gt;&lt;P&gt;but they gave me many histograms fo each mean but I need only one histogram for all the means.&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Dec 2014 17:52:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163780#M263508</guid>
      <dc:creator>mesdz</dc:creator>
      <dc:date>2014-12-27T17:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163781#M263509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Transpose your data so that you have a two variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VariableNum Mean&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp; 25&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp; 34&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp; 45&lt;/P&gt;&lt;P&gt;4&amp;nbsp; 34&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1000 45&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then run proc univariate on the mean variable. &lt;/P&gt;&lt;P&gt;You can look into proc transpose to flip the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Dec 2014 20:43:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163781#M263509</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-12-27T20:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163782#M263510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An implementation of &lt;A __default_attr="255172" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://communities.sas.com/"&gt;&lt;/A&gt;'s suggestion would be :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data popList;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;length id $12;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set pop;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;array nm{*} nm_x:;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;do i = 1 to dim(nm);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = nm{i};&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; id = catx("_", _n_, i);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;keep id x;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc univariate data=popList;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var x;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;id id;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;histogram;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Dec 2014 21:18:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163782#M263510</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-12-27T21:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163783#M263511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry but it doesnt work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 13:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163783#M263511</guid>
      <dc:creator>mesdz</dc:creator>
      <dc:date>2014-12-29T13:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163784#M263512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 15:30:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163784#M263512</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-12-29T15:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163785#M263513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PGStats used nm_x as a prefix for the variable names, rather than mn_x. If you change the code to use mn_x as a prefix, the code works perfectly. The code below demonstrates that with three means. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data pop;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; input mn_x1 mn_x2 mn_x3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;1 5 7&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data popList;&lt;/P&gt;&lt;P&gt;length id $12;&lt;/P&gt;&lt;P&gt;set pop;&lt;/P&gt;&lt;P&gt;array mn{*} mn_x:;&lt;/P&gt;&lt;P&gt;do i = 1 to dim(mn);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = mn{i};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; id = catx("_", _n_, i);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;keep id x;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc univariate data=popList;&lt;/P&gt;&lt;P&gt;var x;&lt;/P&gt;&lt;P&gt;id id;&lt;/P&gt;&lt;P&gt;histogram;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 17:29:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163785#M263513</guid>
      <dc:creator>StatsGeek</dc:creator>
      <dc:date>2014-12-29T17:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163786#M263514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I put the means in&amp;nbsp; a table as follows&lt;/P&gt;&lt;P&gt;data histo;&lt;/P&gt;&lt;P&gt;set proc_means;&lt;/P&gt;&lt;P&gt;array x{*}nm_x1-nm_x1000;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;now Iwant to put that table in a variable say F but I didnt find&amp;nbsp; a solution&amp;nbsp; I did the following but it doesnt work&lt;/P&gt;&lt;P&gt;data histo;&lt;/P&gt;&lt;P&gt;set proc_means;&lt;/P&gt;&lt;P&gt;array x{*}nm_x1-nm_x1000;&lt;/P&gt;&lt;P&gt;s=x{nm_x1-nm_x1000};&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;could you please help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 17:44:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163786#M263514</guid>
      <dc:creator>mesdz</dc:creator>
      <dc:date>2014-12-29T17:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163787#M263515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I put the means in&amp;nbsp; a table as follows&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data histo;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;set proc_means;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;array x{*}nm_x1-nm_x1000;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;now Iwant to put that table in a variable say S but I didnt find&amp;nbsp; a solution&amp;nbsp; I did the following but it doesnt work&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data histo;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;set proc_means;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;array x{*}nm_x1-nm_x1000;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;s=x{nm_x1-nm_x1000};&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;could you please help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 17:47:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163787#M263515</guid>
      <dc:creator>mesdz</dc:creator>
      <dc:date>2014-12-29T17:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163788#M263516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest way to do that is to use the TRANSPOSE procedure. After you transpose the data, you'll need to drop the _name_ variable and rename the col1 variable to s. The code below shows how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data proc_means;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; input mn_x1 mn_x2 mn_x3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; datalines;&lt;/P&gt;&lt;P&gt;1 5 7&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc transpose data=proc_means out=histo;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; var mn:;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data histo;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set histo (drop=_NAME_ rename=col1=s);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 17:53:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163788#M263516</guid>
      <dc:creator>StatsGeek</dc:creator>
      <dc:date>2014-12-29T17:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163789#M263517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code is missing the do loop portion from PG's code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you open the data set does it look like the structure I've recommended in my post?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 19:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163789#M263517</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-12-29T19:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163790#M263518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The do loop is not necessary after using the TRANSPOSE procedure. The data set would appear as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to keep the variable label for each observation, just remove "drop=_name_" from the code I previously posted and the result is as follows.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;IMG alt="result.PNG" class="jive-image" src="https://communities.sas.com/legacyfs/online/8565_result.PNG" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;The _name_ variable is not necessary for generating the histogram, but you can keep it if you like. The code for generating the histogram is:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P&gt;proc univariate data=histo;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; var s;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; histogram;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 19:22:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163790#M263518</guid>
      <dc:creator>StatsGeek</dc:creator>
      <dc:date>2014-12-29T19:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163791#M263519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was trying to explain why the code used did not work, it was not a full implementation of the suggested code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code suggested by PG should work as well, just a different way to transpose. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 19:35:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163791#M263519</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-12-29T19:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163792#M263520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I misunderstood. You are correct that the code suggested by PG would also work, as long as the variable names are changed to be the same as those used by &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="-1" data-externalid="" data-presence="null" data-userid="859269" data-username="mesdz" href="https://communities.sas.com/people/mesdz" id="jive-85926935261775054023186" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #0e66ba;"&gt;mesdz&lt;/A&gt;&lt;/STRONG&gt; (e.g., mn_x1, not nm_x1).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 19:42:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163792#M263520</guid>
      <dc:creator>StatsGeek</dc:creator>
      <dc:date>2014-12-29T19:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163793#M263521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you meant that I have to replace &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;nm_x1 by &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;mn_x1?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 20:01:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163793#M263521</guid>
      <dc:creator>mesdz</dc:creator>
      <dc:date>2014-12-29T20:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163794#M263522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, exactly. Or you can just copy the code that I posted previously.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 20:05:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163794#M263522</guid>
      <dc:creator>StatsGeek</dc:creator>
      <dc:date>2014-12-29T20:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163795#M263523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arrays in SAS are not the same as in other languages. They simplify the reference to variables but do not exist beyond shortcuts to variables.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declaring an array in a data step does nothing in the next data step. The do loop goes through the array and outputs each item onto a new line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 20:40:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163795#M263523</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-12-29T20:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: histogram</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163796#M263524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okey thanks it works now &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2015 12:22:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram/m-p/163796#M263524</guid>
      <dc:creator>mesdz</dc:creator>
      <dc:date>2015-01-02T12:22:43Z</dc:date>
    </item>
  </channel>
</rss>

