<?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: Suggestion for a  good paper on the topic in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Suggestion-for-a-good-paper-on-the-topic/m-p/66936#M19138</link>
    <description>Cynthia, &lt;BR /&gt;
&lt;BR /&gt;
I admire your patience. Your's goes way beyond merely serving your customer. (As noted, maybe in this case it involves doing their homework for them &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
People like you do in fact make this a better world.&lt;BR /&gt;
&lt;BR /&gt;
I "tip my hat to you"!&lt;BR /&gt;
&lt;BR /&gt;
Jay</description>
    <pubDate>Thu, 11 Mar 2010 20:22:54 GMT</pubDate>
    <dc:creator>Jay</dc:creator>
    <dc:date>2010-03-11T20:22:54Z</dc:date>
    <item>
      <title>Suggestion for a  good paper on the topic</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Suggestion-for-a-good-paper-on-the-topic/m-p/66929#M19131</link>
      <description>hello All,&lt;BR /&gt;
&lt;BR /&gt;
I use the code :-&lt;BR /&gt;
&lt;BR /&gt;
PROC GCHART data=sc.period; &lt;BR /&gt;
    BY  units purchased;&lt;BR /&gt;
    HBAR Week  Model; &lt;BR /&gt;
RUN; &lt;BR /&gt;
&lt;BR /&gt;
My objective is to produce a Bar Chart that will give me the number of units  purchased in 4 weeks ( the varibale Week is a character variable and has 4 categories - Week1 ,...,Week4).I want that this char give me the number of units purchased in each week , so that Week is one the x-axis and Units Purchased on y-axis.&lt;BR /&gt;
&lt;BR /&gt;
Secondly, supoose that the variable Model has 3 categories ( Model 1, Model2 and Modle 3).Then in that case what should I use in the code as my final aim is to produce Bar chart or Histogram that will tell me the number purchased in each week for each Model.&lt;BR /&gt;
&lt;BR /&gt;
Kind  Regards,&lt;BR /&gt;
Mark</description>
      <pubDate>Thu, 11 Mar 2010 05:55:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Suggestion-for-a-good-paper-on-the-topic/m-p/66929#M19131</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-11T05:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion for a  good paper on the topic</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Suggestion-for-a-good-paper-on-the-topic/m-p/66930#M19132</link>
      <description>There's an entire forum dedicated to SAS/GRAPH questions, just a few rows down from this one. On the main forums page, look for &lt;B&gt;SAS/GRAPH and ODS Graphics&lt;/B&gt;. Try your question there. Good luck!</description>
      <pubDate>Thu, 11 Mar 2010 13:34:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Suggestion-for-a-good-paper-on-the-topic/m-p/66930#M19132</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2010-03-11T13:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion for a  good paper on the topic</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Suggestion-for-a-good-paper-on-the-topic/m-p/66931#M19133</link>
      <description>Comment to OP: the post content of MC appears mysteriously similar to that of MarkC.  &lt;BR /&gt;
&lt;BR /&gt;
Honestly, as has been recommended with your prior posts, it's not going to help you get SAS programming assistance when you are unwilling to embrace SAS documentation and supplemental technical reference material available to you at SAS.COM.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 11 Mar 2010 14:12:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Suggestion-for-a-good-paper-on-the-topic/m-p/66931#M19133</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-03-11T14:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion for a  good paper on the topic</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Suggestion-for-a-good-paper-on-the-topic/m-p/66932#M19134</link>
      <description>Scott;&lt;BR /&gt;
&lt;BR /&gt;
Do you expect him to do his own home work.  Come on!</description>
      <pubDate>Thu, 11 Mar 2010 15:22:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Suggestion-for-a-good-paper-on-the-topic/m-p/66932#M19134</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2010-03-11T15:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion for a  good paper on the topic</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Suggestion-for-a-good-paper-on-the-topic/m-p/66933#M19135</link>
      <description>So now you need 2 accounts on here as well as 3 or 4 on SAS-L?  Too many people stop giving you fully coded answers to your homework?&lt;BR /&gt;
&lt;BR /&gt;
Seriously, the second anyone (employer/teacher) asks you even the most basic question about SAS you will have no clue what the answer is unless you actually start putting some effort into learning instead of trying to find ways to just get the answers to the questions.

Message was edited by: RickM</description>
      <pubDate>Thu, 11 Mar 2010 16:09:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Suggestion-for-a-good-paper-on-the-topic/m-p/66933#M19135</guid>
      <dc:creator>RickM</dc:creator>
      <dc:date>2010-03-11T16:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion for a  good paper on the topic</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Suggestion-for-a-good-paper-on-the-topic/m-p/66934#M19136</link>
      <description>If this class has a final exam, Mark is in trouble.</description>
      <pubDate>Thu, 11 Mar 2010 17:03:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Suggestion-for-a-good-paper-on-the-topic/m-p/66934#M19136</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2010-03-11T17:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion for a  good paper on the topic</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Suggestion-for-a-good-paper-on-the-topic/m-p/66935#M19137</link>
      <description>There is no better guide to SAS/GRAPH than the examples contained in the award-winning SAS/GRAPH documentation:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/gchart-bar.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/gchart-bar.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/gr13n07-ex.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/gr13n07-ex.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/gr13n03-ex.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/graphref/61884/HTML/default/gr13n03-ex.htm&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
And the SAS Notes:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/24/870.html" target="_blank"&gt;http://support.sas.com/kb/24/870.html&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
And this is a good paper:&lt;BR /&gt;
&lt;A href="http://analytics.ncsu.edu/sesug/2004/TU02-Cochran.pdf" target="_blank"&gt;http://analytics.ncsu.edu/sesug/2004/TU02-Cochran.pdf&lt;/A&gt;&lt;BR /&gt;
  &lt;BR /&gt;
If UNITS and PURCHASED are numeric variables, you would not typically use them as BY group variables for graphing purposes. Especially since you said you wanted to have Units Purchased on the Y axis -- this makes me wonder whether you have 1 variable with a label of "Units Purchased" -- but -- the way you have your BY statement coded, it looks like there are 2 numeric variables called UNITS and PURCHASED that are being used as BY group variables (instead of 1 variable).&lt;BR /&gt;
 &lt;BR /&gt;
Generally, you do not refer to a variable &lt;B&gt;LABEL&lt;/B&gt; (such as "Units Purchased" in any SAS statement, you refer to the variable NAME. So if the variable name is UNITSSOLD, it might have a label of "Units Sold"; or if the variable name is UNITSPURCHASED, it might have a label of "Units Purchased". One of the fundamental concepts of SAS variable names is that the variable name cannot contain spaces or any character other than an underscore (_). To refer to a variable any other way, you must use a different naming convention. As explained in the documentation:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000998953.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000998953.htm&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
In the documentation for the HBAR statement, you will want to pay particular attention to the SUMVAR= option and the GROUP= option for the HBAR statement. There are many examples that show the use of these options with PROC GCHART. (Also, you might want to investigate the differences between an HBAR chart and a VBAR chart, especially if you want "Units Purchased" on the Y axis.)&lt;BR /&gt;
      &lt;BR /&gt;
In addition, BY group processing is often used in the creation of SAS/GRAPH output when you want the same graph image created for every BY group category, such as:&lt;BR /&gt;
[pre]&lt;BR /&gt;
by country;  (one graph for each country value)&lt;BR /&gt;
by type;  (one graph for each type value)&lt;BR /&gt;
by country type;  (one graph for every unique combo of country and type values)&lt;BR /&gt;
etc.&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                       &lt;BR /&gt;
So, aside from issues of using the variable NAME, instead of the variable LABEL, it would still not be typical usage to have a BY statement with:&lt;BR /&gt;
[pre]&lt;BR /&gt;
  by unitssold;&lt;BR /&gt;
  by unitsspurchased;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                             &lt;BR /&gt;
(Especially not typical if you wanted "Units Purchased" to be on the Y axis).&lt;BR /&gt;
           &lt;BR /&gt;
So, I would also suggest that you also read this documentation on BY group processing concepts:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000060410.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000060410.htm&lt;/A&gt;&lt;BR /&gt;
                   &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 11 Mar 2010 19:25:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Suggestion-for-a-good-paper-on-the-topic/m-p/66935#M19137</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-03-11T19:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion for a  good paper on the topic</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Suggestion-for-a-good-paper-on-the-topic/m-p/66936#M19138</link>
      <description>Cynthia, &lt;BR /&gt;
&lt;BR /&gt;
I admire your patience. Your's goes way beyond merely serving your customer. (As noted, maybe in this case it involves doing their homework for them &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
People like you do in fact make this a better world.&lt;BR /&gt;
&lt;BR /&gt;
I "tip my hat to you"!&lt;BR /&gt;
&lt;BR /&gt;
Jay</description>
      <pubDate>Thu, 11 Mar 2010 20:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Suggestion-for-a-good-paper-on-the-topic/m-p/66936#M19138</guid>
      <dc:creator>Jay</dc:creator>
      <dc:date>2010-03-11T20:22:54Z</dc:date>
    </item>
  </channel>
</rss>

