<?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 Fun With SAS ODS Graphics: Look at the Birdies! Lee Janzen's 2021 SAS Championship Winning Rounds in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Look-at-the-Birdies-Lee-Janzen-s-2021/m-p/837573#M23210</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leejanzen.png" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76038i6EEA334CA2E63184/image-size/large?v=v2&amp;amp;px=999" role="button" title="leejanzen.png" alt="leejanzen.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the &lt;A href="https://saschampionship.com/" target="_self"&gt;2022 SAS Championship&lt;/A&gt; golf tournament events kicking off Monday, here's a quick SAS ODS Graphics hole-by-hole, over/under par look at Lee Janzen's 2021 SAS Championship winning rounds, which got him into a playoff that he &lt;A href="https://www.pgatour.com/champions/daily-wrapup/2021/10/17/lee-janzen-wins-sas-championship.html" target="_self"&gt;won on the first hole with yet another birdie&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*==&amp;gt; Fun With SAS ODS Graphics: Look at the Birdies! A Hole-by-Hole Look at SAS Championship 2021 Winner Lee Janzen's Rounds;

proc format;                                            * Format to print leading +/- for over/under par scores;
picture parFMT low-&amp;lt;0='000'(prefix='-') 0='9' 0&amp;lt;-high='000'(prefix='+');

data rounds (keep=round hole y score);                  * Get course pars (18 holes) and Janzen's scores (3 rounds x 18 holes);
infile cards firstobs=2;
array p {18} par1-par18; retain par1-par18;             * Arrays for pars, strokes for each hole; 
array s {18} strokes1-strokes18; 
if _n_=1 then do; input @11 par1-par18; delete; end;    * Get pars for each hole; 
input @11 strokes1-strokes18;                           * Get strokes for each hole in a round;
roundNum+1;                                             * Generate label with total score and over/under par for the round; 
round="ROUND "||compress(put(roundnum,1.))||': '||compress(put(sum(of strokes:),3.))||' ('||compress(put(sum(of strokes:)-sum(of par:),parFMT.))||')';
do Hole=1 to 18;                                        * Generate one observation per row with round, hole, over/under (y) and score; 
  y=s(Hole)-p(Hole);                                    * Over/under = score - par;
  score=s(Hole);                                         
  output; 
end;  
* Janzen's 2021 SAS Championship hole-by-hole scores (from pgatour.com/players/player.01577.lee-janzen.html/scorecards/s045);
cards;
HOLE      1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18
PAR       4  4  3  4  4  4  5  3  4  4  3  5  4  4  4  4  5  4
ROUND  1  4  4  2  4  4  4  4  2  3  3  3  4  3  4  6  5  4  4
ROUND  2  4  4  4  3  4  4  5  3  4  4  3  4  4  4  4  4  4  4
ROUND  3  5  3  3  4  4  4  5  2  4  3  3  5  3  4  3  4  5  3
;
proc sgpanel data=rounds noautolegend;                 * Generate scatter/text plots of hole-by-hole scores on a +/- par y-axis;
styleattrs backcolor=cx076652;                         * RGB code for "Masters Green" (colourlovers.com/color/076652/Masters_Green);
panelby round / headerbackcolor=cx076652 headerattrs=(color=white weight=bold) noheaderborder onepanel novarname uniscale=row 
                colheaderpos=top columns=1 spacing=5 nowall noborder;
title color=white "SAS Championship 2021 Winner Lee Janzen";
title2 color=white "Hole-by-Hole Scores and +/- Par";
refline 0 / axis=y lineattrs=(color=white);           * Par reference line at 0;
scatter x=hole y=y / markerattrs=(symbol=circlefilled color=white size=22pt); * White 'golf ball' markers at +/- par on y-axis;
text x=hole y=y text=score / textattrs=(color=cx076652 size=9pt weight=bold) strip vcenter=bbox position=center; * Display scores on markers;
colaxis display=(nolabel noticks noline) grid gridattrs=(color=white pattern=dot) valueattrs=(color=white) values=(1 to 18 by 1); * X-axis is hole numbers;
rowaxis display=(nolabel noticks noline) valueattrs=(color=white) values=(-2 to 2 by 1) valuesformat=parFMT.; * Y-axis is shots over/under/par;
footnote height=8pt color=white "Data Source: pgatour.com/players/player.01577.lee-janzen.html/scorecards/s045";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 09 Oct 2022 17:38:13 GMT</pubDate>
    <dc:creator>tc</dc:creator>
    <dc:date>2022-10-09T17:38:13Z</dc:date>
    <item>
      <title>Fun With SAS ODS Graphics: Look at the Birdies! Lee Janzen's 2021 SAS Championship Winning Rounds</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Look-at-the-Birdies-Lee-Janzen-s-2021/m-p/837573#M23210</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leejanzen.png" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76038i6EEA334CA2E63184/image-size/large?v=v2&amp;amp;px=999" role="button" title="leejanzen.png" alt="leejanzen.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the &lt;A href="https://saschampionship.com/" target="_self"&gt;2022 SAS Championship&lt;/A&gt; golf tournament events kicking off Monday, here's a quick SAS ODS Graphics hole-by-hole, over/under par look at Lee Janzen's 2021 SAS Championship winning rounds, which got him into a playoff that he &lt;A href="https://www.pgatour.com/champions/daily-wrapup/2021/10/17/lee-janzen-wins-sas-championship.html" target="_self"&gt;won on the first hole with yet another birdie&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*==&amp;gt; Fun With SAS ODS Graphics: Look at the Birdies! A Hole-by-Hole Look at SAS Championship 2021 Winner Lee Janzen's Rounds;

proc format;                                            * Format to print leading +/- for over/under par scores;
picture parFMT low-&amp;lt;0='000'(prefix='-') 0='9' 0&amp;lt;-high='000'(prefix='+');

data rounds (keep=round hole y score);                  * Get course pars (18 holes) and Janzen's scores (3 rounds x 18 holes);
infile cards firstobs=2;
array p {18} par1-par18; retain par1-par18;             * Arrays for pars, strokes for each hole; 
array s {18} strokes1-strokes18; 
if _n_=1 then do; input @11 par1-par18; delete; end;    * Get pars for each hole; 
input @11 strokes1-strokes18;                           * Get strokes for each hole in a round;
roundNum+1;                                             * Generate label with total score and over/under par for the round; 
round="ROUND "||compress(put(roundnum,1.))||': '||compress(put(sum(of strokes:),3.))||' ('||compress(put(sum(of strokes:)-sum(of par:),parFMT.))||')';
do Hole=1 to 18;                                        * Generate one observation per row with round, hole, over/under (y) and score; 
  y=s(Hole)-p(Hole);                                    * Over/under = score - par;
  score=s(Hole);                                         
  output; 
end;  
* Janzen's 2021 SAS Championship hole-by-hole scores (from pgatour.com/players/player.01577.lee-janzen.html/scorecards/s045);
cards;
HOLE      1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18
PAR       4  4  3  4  4  4  5  3  4  4  3  5  4  4  4  4  5  4
ROUND  1  4  4  2  4  4  4  4  2  3  3  3  4  3  4  6  5  4  4
ROUND  2  4  4  4  3  4  4  5  3  4  4  3  4  4  4  4  4  4  4
ROUND  3  5  3  3  4  4  4  5  2  4  3  3  5  3  4  3  4  5  3
;
proc sgpanel data=rounds noautolegend;                 * Generate scatter/text plots of hole-by-hole scores on a +/- par y-axis;
styleattrs backcolor=cx076652;                         * RGB code for "Masters Green" (colourlovers.com/color/076652/Masters_Green);
panelby round / headerbackcolor=cx076652 headerattrs=(color=white weight=bold) noheaderborder onepanel novarname uniscale=row 
                colheaderpos=top columns=1 spacing=5 nowall noborder;
title color=white "SAS Championship 2021 Winner Lee Janzen";
title2 color=white "Hole-by-Hole Scores and +/- Par";
refline 0 / axis=y lineattrs=(color=white);           * Par reference line at 0;
scatter x=hole y=y / markerattrs=(symbol=circlefilled color=white size=22pt); * White 'golf ball' markers at +/- par on y-axis;
text x=hole y=y text=score / textattrs=(color=cx076652 size=9pt weight=bold) strip vcenter=bbox position=center; * Display scores on markers;
colaxis display=(nolabel noticks noline) grid gridattrs=(color=white pattern=dot) valueattrs=(color=white) values=(1 to 18 by 1); * X-axis is hole numbers;
rowaxis display=(nolabel noticks noline) valueattrs=(color=white) values=(-2 to 2 by 1) valuesformat=parFMT.; * Y-axis is shots over/under/par;
footnote height=8pt color=white "Data Source: pgatour.com/players/player.01577.lee-janzen.html/scorecards/s045";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Oct 2022 17:38:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Look-at-the-Birdies-Lee-Janzen-s-2021/m-p/837573#M23210</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2022-10-09T17:38:13Z</dc:date>
    </item>
  </channel>
</rss>

