<?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 Create a chart for all numeric variables in the dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-a-chart-for-all-numeric-variables-in-the-dataset/m-p/537964#M148047</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The table below represents the distributions of age for each area. So, the variable _1 represents how many people are 1 years old, the variable _2 how many people are 2 years old, and so on. The age goes up to 90 years old.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DataSet example.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27370i1FD4B51B35038E8B/image-size/large?v=v2&amp;amp;px=999" role="button" title="DataSet example.PNG" alt="DataSet example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to create a graph that shows the distribution of age for each area. One chart as the below for each area:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chart Example.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27371iA01170D6AD6CFC19/image-size/large?v=v2&amp;amp;px=999" role="button" title="Chart Example.PNG" alt="Chart Example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to do so? Hope it makes sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Sat, 23 Feb 2019 12:32:29 GMT</pubDate>
    <dc:creator>Zatere</dc:creator>
    <dc:date>2019-02-23T12:32:29Z</dc:date>
    <item>
      <title>Create a chart for all numeric variables in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-chart-for-all-numeric-variables-in-the-dataset/m-p/537964#M148047</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The table below represents the distributions of age for each area. So, the variable _1 represents how many people are 1 years old, the variable _2 how many people are 2 years old, and so on. The age goes up to 90 years old.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DataSet example.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27370i1FD4B51B35038E8B/image-size/large?v=v2&amp;amp;px=999" role="button" title="DataSet example.PNG" alt="DataSet example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to create a graph that shows the distribution of age for each area. One chart as the below for each area:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chart Example.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27371iA01170D6AD6CFC19/image-size/large?v=v2&amp;amp;px=999" role="button" title="Chart Example.PNG" alt="Chart Example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to do so? Hope it makes sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 23 Feb 2019 12:32:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-chart-for-all-numeric-variables-in-the-dataset/m-p/537964#M148047</guid>
      <dc:creator>Zatere</dc:creator>
      <dc:date>2019-02-23T12:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create a chart for all numeric variables in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-chart-for-all-numeric-variables-in-the-dataset/m-p/537969#M148052</link>
      <description>&lt;P&gt;How about something like this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
   call streaminit(12345);
   length name $20;
   array p[5];
   drop i;
   do NAME="United Kingdom","Great Britan", "England";
      do i=1 to 5;
         p[i]=round(rand('UNIFORM')*i*1000);
      end;
      output;
   end;
run;
data forplot;
   array p[5] p1-p5;
   set have;
   do i=1 to dim(p);
      Pop=vname(p[i]);
      Value=p[i];
      output;
   end;
   keep name pop value;
run;

proc sgplot data=forplot;
   vbar pop/ response=value;
   by Name notsorted;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 23 Feb 2019 14:09:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-chart-for-all-numeric-variables-in-the-dataset/m-p/537969#M148052</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2019-02-23T14:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create a chart for all numeric variables in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-chart-for-all-numeric-variables-in-the-dataset/m-p/537973#M148054</link>
      <description>&lt;P&gt;Thanks! Excellent implementation!&lt;/P&gt;</description>
      <pubDate>Sat, 23 Feb 2019 15:19:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-chart-for-all-numeric-variables-in-the-dataset/m-p/537973#M148054</guid>
      <dc:creator>Zatere</dc:creator>
      <dc:date>2019-02-23T15:19:35Z</dc:date>
    </item>
  </channel>
</rss>

