<?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: SAS 9.1 proc gplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SAS-9-1-proc-gplot/m-p/190413#M7040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert thank you very much.&lt;/P&gt;&lt;P&gt;Working like a charm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2014 07:30:12 GMT</pubDate>
    <dc:creator>bob021</dc:creator>
    <dc:date>2014-04-29T07:30:12Z</dc:date>
    <item>
      <title>SAS 9.1 proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-9-1-proc-gplot/m-p/190411#M7038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all&lt;/P&gt;&lt;P&gt;Can someone help with this?&lt;/P&gt;&lt;P&gt;My problem is in &lt;STRONG&gt;proc gplot&lt;/STRONG&gt;&amp;nbsp; and &lt;STRONG&gt;plot&lt;/STRONG&gt; column "operations"&lt;/P&gt;&lt;P&gt;As you can see from example below every time I must manually add value for plot (&lt;STRONG&gt;a&lt;/STRONG&gt;*week=2 &lt;STRONG&gt;b&lt;/STRONG&gt;*week=3 ....)&lt;/P&gt;&lt;P&gt;For example if value &lt;STRONG&gt;a&lt;/STRONG&gt; is missing, in some period of time, I must rewrite it with existing otherwise SAS will show an error.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Is there any solution to avoid manual intervention for every output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;length operation $1;&lt;/P&gt;&lt;P&gt;format percent percentn10.2;&lt;/P&gt;&lt;P&gt;input week operation percent sum_week;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;18 a 0.21 5842&lt;/P&gt;&lt;P&gt;18 b 0.34 5842&lt;/P&gt;&lt;P&gt;18 c 0.13 5842&lt;/P&gt;&lt;P&gt;18 d 0.15 5842&lt;/P&gt;&lt;P&gt;18 e 0.02 5842&lt;/P&gt;&lt;P&gt;18 f 0.11 5842&lt;/P&gt;&lt;P&gt;19 a 0.11 8501&lt;/P&gt;&lt;P&gt;19 b 0.14 8501&lt;/P&gt;&lt;P&gt;19 c 0.23 8501&lt;/P&gt;&lt;P&gt;19 d 0.25 8501&lt;/P&gt;&lt;P&gt;19 e 0.32 8501&lt;/P&gt;&lt;P&gt;19 f 0.21 8501&lt;/P&gt;&lt;P&gt;20 a 0.21 7007&lt;/P&gt;&lt;P&gt;20 b 0.34 7007&lt;/P&gt;&lt;P&gt;20 c 0.13 7007&lt;/P&gt;&lt;P&gt;20 d 0.15 7007&lt;/P&gt;&lt;P&gt;20 e 0.02 7007&lt;/P&gt;&lt;P&gt;20 f 0.11 7007&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 sort data=test (drop=sum_week) out=test1;&lt;/P&gt;&lt;P&gt;by week;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc transpose data=test1 out=test1 (drop=_name_);&lt;/P&gt;&lt;P&gt;by week;&lt;/P&gt;&lt;P&gt;id operation;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table test2 as&lt;/P&gt;&lt;P&gt;select unique week, sum_week&lt;/P&gt;&lt;P&gt;from test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create table test_final as&lt;/P&gt;&lt;P&gt;select unique test1.*, test2.sum_week&lt;/P&gt;&lt;P&gt;from test1 left join test2&lt;/P&gt;&lt;P&gt;on test1.week=test2.week;&lt;/P&gt;&lt;P&gt;quit; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis1 label=('Lines') order=(0 to .40 by .05) minor=none offset=(0,0);&lt;/P&gt;&lt;P&gt;axis2 label=none minor=none offset=(15,15);&lt;/P&gt;&lt;P&gt;axis3 label=('Bars') order=(0 to 9000 by 1000) minor=none offset=(0,0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;symbol1 value=none interpol=needle width=25 color=cx4573a7 repeat=1;&lt;/P&gt;&lt;P&gt;symbol2 value=none interpol=join repeat=1 color=blue;&lt;/P&gt;&lt;P&gt;symbol3 value=none interpol=join repeat=1 color=cx00ff00;&lt;/P&gt;&lt;P&gt;symbol4 value=none interpol=join repeat=1 color=pink;&lt;/P&gt;&lt;P&gt;symbol5 value=none interpol=join repeat=1 color=red;&lt;/P&gt;&lt;P&gt;symbol6 value=none interpol=join repeat=1 color=purple;&lt;/P&gt;&lt;P&gt;symbol7 value=none interpol=join repeat=1 color=black;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;legend1 position=(bottom center) down=1 label=none;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gplot data=test_final;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format a percent7.0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plot a*week=2 b*week=3 c*week=4 d*week=5 e*week=6 f*week=7 / overlay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vaxis=axis1 haxis=axis2 legend=l1gend1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plot2 sum_week*week=1 / vaxis=axis3 haxis=axis2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 09:49:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-9-1-proc-gplot/m-p/190411#M7038</guid>
      <dc:creator>bob021</dc:creator>
      <dc:date>2014-04-23T09:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.1 proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-9-1-proc-gplot/m-p/190412#M7039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about something like this?...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;length operation $1;&lt;BR /&gt;format percent percentn10.2;&lt;BR /&gt;input week operation percent sum_week;&lt;BR /&gt;datalines;&lt;BR /&gt;18 a 0.21 5842&lt;BR /&gt;18 b 0.34 5842&lt;BR /&gt;18 c 0.13 5842&lt;BR /&gt;18 d 0.15 5842&lt;BR /&gt;18 e 0.02 5842&lt;BR /&gt;18 f 0.11 5842&lt;BR /&gt;19 a 0.11 8501&lt;BR /&gt;19 b 0.14 8501&lt;BR /&gt;19 c 0.23 8501&lt;BR /&gt;19 d 0.25 8501&lt;BR /&gt;19 e 0.32 8501&lt;BR /&gt;19 f 0.21 8501&lt;BR /&gt;20 a 0.21 7007&lt;BR /&gt;20 b 0.34 7007&lt;BR /&gt;20 c 0.13 7007&lt;BR /&gt;20 d 0.15 7007&lt;BR /&gt;20 e 0.02 7007&lt;BR /&gt;20 f 0.11 7007&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis1 label=('Lines') order=(0 to .40 by .05) minor=none offset=(0,0);&lt;BR /&gt;axis2 label=none minor=none offset=(15,15);&lt;BR /&gt;axis3 label=('Bars') order=(0 to 9000 by 1000) minor=none offset=(0,0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goptions reset=symbol;&lt;BR /&gt;symbol1 value=none interpol=needle width=25 color=cx4573a7 repeat=1;&lt;BR /&gt;symbol2 value=none interpol=join;&lt;BR /&gt;legend1 position=(bottom center) down=1 label=none;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gplot data=test;&lt;BR /&gt;format percent percentn7.0;&lt;BR /&gt;plot sum_week*week=1 / vaxis=axis3 haxis=axis2 legend=legend1;&lt;BR /&gt;plot2 percent*week=operation / vaxis=axis1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="foo.png" class="jive-image-thumbnail jive-image" height="479" src="https://communities.sas.com/legacyfs/online/6154_foo.png" width="713" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 13:33:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-9-1-proc-gplot/m-p/190412#M7039</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2014-04-25T13:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.1 proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-9-1-proc-gplot/m-p/190413#M7040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert thank you very much.&lt;/P&gt;&lt;P&gt;Working like a charm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 07:30:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-9-1-proc-gplot/m-p/190413#M7040</guid>
      <dc:creator>bob021</dc:creator>
      <dc:date>2014-04-29T07:30:12Z</dc:date>
    </item>
  </channel>
</rss>

