<?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 include color key to pdf report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/include-color-key-to-pdf-report/m-p/951138#M371853</link>
    <description>&lt;P&gt;ods path (prepend) work.template(update) sashelp.tmplmst;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc template;&lt;BR /&gt;define style custom_style;&lt;BR /&gt;parent=styles.pearl;&lt;BR /&gt;style Document /&lt;BR /&gt;margin=0.3in;&lt;BR /&gt;style Table /&lt;BR /&gt;bordercolor=cxB0B7BB&lt;BR /&gt;borderwidth=0.5pt&lt;BR /&gt;borderstyle=solid;&lt;BR /&gt;class Header /&lt;BR /&gt;backgroundcolor=lightblue height=40; /* Optional: Change header background color */&lt;BR /&gt;class fonts /&lt;BR /&gt;'TitleFont' = ("&amp;lt;MTsans-serif&amp;gt;, Albany",14pt,bold)&lt;BR /&gt;'TitleFont2' = ("&amp;lt;MTsans-serif&amp;gt;, Albany",14pt,medium italic)&lt;BR /&gt;'docFont' = ("&amp;lt;MTsans-serif&amp;gt;, Albany",8pt);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;title;&lt;BR /&gt;options nodate nonumber orientation=landscape papersize=letter topmargin=.25in bottommargin=.25in leftmargin=.25in rightmargin=.25in;&lt;/P&gt;&lt;P&gt;/* Generate PDF report */&lt;BR /&gt;ods pdf file="&amp;amp;path.\dummy..pdf"&lt;BR /&gt;notoc&lt;BR /&gt;style=custom_style&lt;BR /&gt;startpage=no;&lt;/P&gt;&lt;P&gt;/* Create the report */&lt;BR /&gt;proc report data=sashelp.class;&lt;BR /&gt;columns sex name ;&lt;BR /&gt;compute name;&lt;BR /&gt;if sex='F' then call define(_col_,'style', 'style={background=pink}');&lt;BR /&gt;else if sex='M' then call define(_col_, 'style', 'style={background=cyan}');&lt;BR /&gt;endcomp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods pdf close; /* Close the PDF destination */&lt;/P&gt;</description>
    <pubDate>Mon, 18 Nov 2024 19:22:01 GMT</pubDate>
    <dc:creator>sum_sand</dc:creator>
    <dc:date>2024-11-18T19:22:01Z</dc:date>
    <item>
      <title>include color key to pdf report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-color-key-to-pdf-report/m-p/951138#M371853</link>
      <description>&lt;P&gt;ods path (prepend) work.template(update) sashelp.tmplmst;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc template;&lt;BR /&gt;define style custom_style;&lt;BR /&gt;parent=styles.pearl;&lt;BR /&gt;style Document /&lt;BR /&gt;margin=0.3in;&lt;BR /&gt;style Table /&lt;BR /&gt;bordercolor=cxB0B7BB&lt;BR /&gt;borderwidth=0.5pt&lt;BR /&gt;borderstyle=solid;&lt;BR /&gt;class Header /&lt;BR /&gt;backgroundcolor=lightblue height=40; /* Optional: Change header background color */&lt;BR /&gt;class fonts /&lt;BR /&gt;'TitleFont' = ("&amp;lt;MTsans-serif&amp;gt;, Albany",14pt,bold)&lt;BR /&gt;'TitleFont2' = ("&amp;lt;MTsans-serif&amp;gt;, Albany",14pt,medium italic)&lt;BR /&gt;'docFont' = ("&amp;lt;MTsans-serif&amp;gt;, Albany",8pt);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;title;&lt;BR /&gt;options nodate nonumber orientation=landscape papersize=letter topmargin=.25in bottommargin=.25in leftmargin=.25in rightmargin=.25in;&lt;/P&gt;&lt;P&gt;/* Generate PDF report */&lt;BR /&gt;ods pdf file="&amp;amp;path.\dummy..pdf"&lt;BR /&gt;notoc&lt;BR /&gt;style=custom_style&lt;BR /&gt;startpage=no;&lt;/P&gt;&lt;P&gt;/* Create the report */&lt;BR /&gt;proc report data=sashelp.class;&lt;BR /&gt;columns sex name ;&lt;BR /&gt;compute name;&lt;BR /&gt;if sex='F' then call define(_col_,'style', 'style={background=pink}');&lt;BR /&gt;else if sex='M' then call define(_col_, 'style', 'style={background=cyan}');&lt;BR /&gt;endcomp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods pdf close; /* Close the PDF destination */&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 19:22:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-color-key-to-pdf-report/m-p/951138#M371853</guid>
      <dc:creator>sum_sand</dc:creator>
      <dc:date>2024-11-18T19:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: include color key to pdf report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-color-key-to-pdf-report/m-p/951141#M371855</link>
      <description>&lt;P&gt;And the question is what exactly?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/470984"&gt;@sum_sand&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;ods path (prepend) work.template(update) sashelp.tmplmst;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc template;&lt;BR /&gt;define style custom_style;&lt;BR /&gt;parent=styles.pearl;&lt;BR /&gt;style Document /&lt;BR /&gt;margin=0.3in;&lt;BR /&gt;style Table /&lt;BR /&gt;bordercolor=cxB0B7BB&lt;BR /&gt;borderwidth=0.5pt&lt;BR /&gt;borderstyle=solid;&lt;BR /&gt;class Header /&lt;BR /&gt;backgroundcolor=lightblue height=40; /* Optional: Change header background color */&lt;BR /&gt;class fonts /&lt;BR /&gt;'TitleFont' = ("&amp;lt;MTsans-serif&amp;gt;, Albany",14pt,bold)&lt;BR /&gt;'TitleFont2' = ("&amp;lt;MTsans-serif&amp;gt;, Albany",14pt,medium italic)&lt;BR /&gt;'docFont' = ("&amp;lt;MTsans-serif&amp;gt;, Albany",8pt);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;title;&lt;BR /&gt;options nodate nonumber orientation=landscape papersize=letter topmargin=.25in bottommargin=.25in leftmargin=.25in rightmargin=.25in;&lt;/P&gt;
&lt;P&gt;/* Generate PDF report */&lt;BR /&gt;ods pdf file="&amp;amp;path.\dummy..pdf"&lt;BR /&gt;notoc&lt;BR /&gt;style=custom_style&lt;BR /&gt;startpage=no;&lt;/P&gt;
&lt;P&gt;/* Create the report */&lt;BR /&gt;proc report data=sashelp.class;&lt;BR /&gt;columns sex name ;&lt;BR /&gt;compute name;&lt;BR /&gt;if sex='F' then call define(_col_,'style', 'style={background=pink}');&lt;BR /&gt;else if sex='M' then call define(_col_, 'style', 'style={background=cyan}');&lt;BR /&gt;endcomp;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;ods pdf close; /* Close the PDF destination */&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 20:21:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-color-key-to-pdf-report/m-p/951141#M371855</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-11-18T20:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: include color key to pdf report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-color-key-to-pdf-report/m-p/951146#M371857</link>
      <description>&lt;P&gt;Key explaining colors - what each color represents.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 21:46:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-color-key-to-pdf-report/m-p/951146#M371857</guid>
      <dc:creator>sum_sand</dc:creator>
      <dc:date>2024-11-18T21:46:07Z</dc:date>
    </item>
  </channel>
</rss>

