<?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: Can You Wear White After Labor Day? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Can-You-Wear-White-After-Labor-Day/m-p/491999#M16869</link>
    <description>&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="LaborDay2.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22954iBFB1069A6E14142F/image-size/large?v=v2&amp;amp;px=999" role="button" title="LaborDay2.png" alt="LaborDay2.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fretting over what to wear when you go back to work on Tuesday? The &lt;A href="https://twitter.com/EmilyPostInst" target="_self"&gt;Emily Post Institute&lt;/A&gt; has advice on &lt;A href="http://emilypost.com/advice/wearing-white-after-labor-day/" target="_self"&gt;Wearing White After Labor Day&lt;/A&gt;. Happy Labor Day!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Update: Added PERCENT keyword to PIECHART statement)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Fun With SAS ODS Graphics: Can You Wear White After Labor Day?

  Reference: Wearing White After Labor Day, emilypost.com/advice/wearing-white-after-labor-day;
  
proc format;                                          * Special formats; 
picture mmmdd other='%b%0d' (datatype=date);          * Dates=mmmdd;
picture ddd other='000 Days';                         * Days=nnn Days;

data When2WearWhite(keep=DateRange Days);             * Create data to chart;
LaborDay=holiday('LABOR',year(today()));              * When is Labor Day this year?; 
MemorialDay=holiday('MEMORIAL',year(today()));        * When is Memorial Day this year?;
length DateRange $ 30.;                               * Date range label for chart;
DateRange=put(MemorialDay,mmmdd.)||'-'||put(LaborDay,mmmdd.); 
DaysInYear=intck('days',                              /* How many days in this year? */       
                 intnx('years',today(),-1,'e'),intnx('years',today(),0,'e'));
call symput('degrees',                                /* Compute degrees relative to piechart origin for start of Memorial-Labor Day pie slice */
            put(360-(substr(put(MemorialDay,julian5.),3,3)/DaysInYear*360-90),3.));
Days=LaborDay-MemorialDay+1;                          * Days between Memorial Day &amp;amp; Labor Day (Definitely OK to wear white!);
output;
Days=DaysInYear-Days;                                 * Rest of year (Maybe OK to wear white?);
DateRange='Jan01-'||put(MemorialDay-1,mmmdd.)||','||put(LaborDay+1,mmmdd.)||'-Dec31 ?';
output;

ods graphics on / reset width=8in height=5in;         * Create a pie chart with two slices (Memorial-Labor Day, rest of year);
proc template;                                         
define statgraph laborday;
begingraph / datacolors=(white lightgray);            * Memorial Day to Labor Day=White (OK), rest of year=LighGray (OK??);
entrytitle 'CAN YOU WEAR WHITE AFTER LABOR DAY?';
layout region;                                        /* Pie wedges proportional to number of days in date range */                          
piechart category=DateRange response=Days /           /* Position Memorial-Labor Day wedge as if year is a clock w/Jan. 1 at 12:00 */   
         start=&amp;amp;degrees categorydirection=clockwise dataskin=crisp 
         datalabelcontent=(category response&amp;nbsp;percent) datalabelattrs=(color=black) datalabellocation=callout;
endlayout;
endgraph; 
end;
run;

proc sgrender data=When2WearWhite template=laborday;
format Days ddd.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Sep 2018 14:18:44 GMT</pubDate>
    <dc:creator>tc</dc:creator>
    <dc:date>2018-09-03T14:18:44Z</dc:date>
    <item>
      <title>Fun With SAS ODS Graphics: Can You Wear White After Labor Day?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Can-You-Wear-White-After-Labor-Day/m-p/491999#M16869</link>
      <description>&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="LaborDay2.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22954iBFB1069A6E14142F/image-size/large?v=v2&amp;amp;px=999" role="button" title="LaborDay2.png" alt="LaborDay2.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fretting over what to wear when you go back to work on Tuesday? The &lt;A href="https://twitter.com/EmilyPostInst" target="_self"&gt;Emily Post Institute&lt;/A&gt; has advice on &lt;A href="http://emilypost.com/advice/wearing-white-after-labor-day/" target="_self"&gt;Wearing White After Labor Day&lt;/A&gt;. Happy Labor Day!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Update: Added PERCENT keyword to PIECHART statement)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Fun With SAS ODS Graphics: Can You Wear White After Labor Day?

  Reference: Wearing White After Labor Day, emilypost.com/advice/wearing-white-after-labor-day;
  
proc format;                                          * Special formats; 
picture mmmdd other='%b%0d' (datatype=date);          * Dates=mmmdd;
picture ddd other='000 Days';                         * Days=nnn Days;

data When2WearWhite(keep=DateRange Days);             * Create data to chart;
LaborDay=holiday('LABOR',year(today()));              * When is Labor Day this year?; 
MemorialDay=holiday('MEMORIAL',year(today()));        * When is Memorial Day this year?;
length DateRange $ 30.;                               * Date range label for chart;
DateRange=put(MemorialDay,mmmdd.)||'-'||put(LaborDay,mmmdd.); 
DaysInYear=intck('days',                              /* How many days in this year? */       
                 intnx('years',today(),-1,'e'),intnx('years',today(),0,'e'));
call symput('degrees',                                /* Compute degrees relative to piechart origin for start of Memorial-Labor Day pie slice */
            put(360-(substr(put(MemorialDay,julian5.),3,3)/DaysInYear*360-90),3.));
Days=LaborDay-MemorialDay+1;                          * Days between Memorial Day &amp;amp; Labor Day (Definitely OK to wear white!);
output;
Days=DaysInYear-Days;                                 * Rest of year (Maybe OK to wear white?);
DateRange='Jan01-'||put(MemorialDay-1,mmmdd.)||','||put(LaborDay+1,mmmdd.)||'-Dec31 ?';
output;

ods graphics on / reset width=8in height=5in;         * Create a pie chart with two slices (Memorial-Labor Day, rest of year);
proc template;                                         
define statgraph laborday;
begingraph / datacolors=(white lightgray);            * Memorial Day to Labor Day=White (OK), rest of year=LighGray (OK??);
entrytitle 'CAN YOU WEAR WHITE AFTER LABOR DAY?';
layout region;                                        /* Pie wedges proportional to number of days in date range */                          
piechart category=DateRange response=Days /           /* Position Memorial-Labor Day wedge as if year is a clock w/Jan. 1 at 12:00 */   
         start=&amp;amp;degrees categorydirection=clockwise dataskin=crisp 
         datalabelcontent=(category response&amp;nbsp;percent) datalabelattrs=(color=black) datalabellocation=callout;
endlayout;
endgraph; 
end;
run;

proc sgrender data=When2WearWhite template=laborday;
format Days ddd.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 14:18:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Can-You-Wear-White-After-Labor-Day/m-p/491999#M16869</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2018-09-03T14:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Fun With SAS ODS Graphics: Can You Wear White After Labor Day?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Can-You-Wear-White-After-Labor-Day/m-p/492277#M16877</link>
      <description>&lt;P&gt;Hooray! Wearing my white shoes and matching belt in celebration.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 13:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Can-You-Wear-White-After-Labor-Day/m-p/492277#M16877</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-09-04T13:29:53Z</dc:date>
    </item>
  </channel>
</rss>

