<?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 BUILDING A REPORT ADDING A VARIABLE EACH MONTH. in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/BUILDING-A-REPORT-ADDING-A-VARIABLE-EACH-MONTH/m-p/206546#M13708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;I am using proc report to create a excel file.&amp;nbsp;&amp;nbsp;&amp;nbsp; every month I copy and paste the define states and change the names to the new month.&amp;nbsp;&amp;nbsp; for example this month my variable names have apr16, mar16, feb16, apr15,mar15,feb16 in them.&amp;nbsp;&amp;nbsp; Next month may16 and may15 will be created in the dataset.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want to try and automate this so I do not have to copy and paste, each month.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; This is what I currently doing.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; %marco report(currmnth1,currmnth2,.....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define den_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;currmnth1.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Den&lt;BR /&gt;&amp;amp;currmnth1."&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define num_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;currmnth1.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Num&lt;BR /&gt;&amp;amp;currmnth1."&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define rate_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;currmnth1.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Rate&lt;BR /&gt;&amp;amp;currmnth1."&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define den_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;currmnth2.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Den&lt;BR /&gt;&amp;amp;currmnth2."&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define num_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;currmnth2.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Num&lt;BR /&gt;&amp;amp;currmnth2."&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define rate_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;currmnth2.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Rate&lt;BR /&gt;&amp;amp;currmnth2."&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..... then next month I would copy statements above and paste then change to &amp;amp;currmnth3, .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;%mend report;&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;%report(mar16,apr16);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;next month could be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;%report(mar16,apr16,may16);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jun 2015 17:30:08 GMT</pubDate>
    <dc:creator>TracyG</dc:creator>
    <dc:date>2015-06-15T17:30:08Z</dc:date>
    <item>
      <title>BUILDING A REPORT ADDING A VARIABLE EACH MONTH.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/BUILDING-A-REPORT-ADDING-A-VARIABLE-EACH-MONTH/m-p/206546#M13708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;I am using proc report to create a excel file.&amp;nbsp;&amp;nbsp;&amp;nbsp; every month I copy and paste the define states and change the names to the new month.&amp;nbsp;&amp;nbsp; for example this month my variable names have apr16, mar16, feb16, apr15,mar15,feb16 in them.&amp;nbsp;&amp;nbsp; Next month may16 and may15 will be created in the dataset.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want to try and automate this so I do not have to copy and paste, each month.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; This is what I currently doing.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; %marco report(currmnth1,currmnth2,.....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define den_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;currmnth1.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Den&lt;BR /&gt;&amp;amp;currmnth1."&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define num_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;currmnth1.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Num&lt;BR /&gt;&amp;amp;currmnth1."&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define rate_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;currmnth1.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Rate&lt;BR /&gt;&amp;amp;currmnth1."&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define den_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;currmnth2.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Den&lt;BR /&gt;&amp;amp;currmnth2."&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define num_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;currmnth2.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Num&lt;BR /&gt;&amp;amp;currmnth2."&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define rate_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;currmnth2.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Rate&lt;BR /&gt;&amp;amp;currmnth2."&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..... then next month I would copy statements above and paste then change to &amp;amp;currmnth3, .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;%mend report;&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;%report(mar16,apr16);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;next month could be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;%report(mar16,apr16,may16);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 17:30:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/BUILDING-A-REPORT-ADDING-A-VARIABLE-EACH-MONTH/m-p/206546#M13708</guid>
      <dc:creator>TracyG</dc:creator>
      <dc:date>2015-06-15T17:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: BUILDING A REPORT ADDING A VARIABLE EACH MONTH.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/BUILDING-A-REPORT-ADDING-A-VARIABLE-EACH-MONTH/m-p/206547#M13709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does the rest of your report look like? Is it an option to restructure the data so that the months become an ACROSS variables so you aren't making these changes in the first place?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 17:47:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/BUILDING-A-REPORT-ADDING-A-VARIABLE-EACH-MONTH/m-p/206547#M13709</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-06-15T17:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: BUILDING A REPORT ADDING A VARIABLE EACH MONTH.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/BUILDING-A-REPORT-ADDING-A-VARIABLE-EACH-MONTH/m-p/206548#M13710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if that will work.&amp;nbsp;&amp;nbsp; will have to take a look at that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the rest of the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;proc &lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;sort&lt;/STRONG&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 11pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;mnth.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&amp;amp;hedyr._&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;currbuild.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 11pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;SPAN style="background: white; color: green; font-family: 'Courier New'; font-size: 11pt;"&gt;/*category*/&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt; lob meas_sub;&lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;%marco report(currmnth1,currmnth2,.....)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;ods listing close;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;options leftmargin = &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;.4&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;in&lt;BR /&gt;rightmargin = &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;.4&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;in TopMargin = &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;.4&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;in&lt;BR /&gt;BottomMargin = &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;.4&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;in &lt;/SPAN&gt;&lt;SPAN style="background: white; color: green; font-family: 'Courier New'; font-size: 11pt;"&gt;/*validmemname=extend*/&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;validvarname=any;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;ods tagsets.excelxp&lt;BR /&gt;file = &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"/data/dept/hsvcsqi/Delta/HEDIS_2015/Bill_Sheet/Delta/&amp;amp;hedyr._&amp;amp;currbuild._&amp;amp;date1..xls"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;style = styles.rtf&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;options (&lt;BR /&gt;sheet_name&amp;nbsp; = &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'Comparison'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt; sheet_interval=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'none'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;orientation = &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'landscape'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;embedded_Titles = &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'yes'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt; frozen_headers=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'1'&lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;/* pages_fitweight = '1'*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pages_fitheight = &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'2'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;autofit_height = &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'yes'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt; row_Repeat = &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'1-1'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;scale = &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'80'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt; center_horizontal = &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'yes'&lt;/SPAN&gt;&lt;SPAN style="color: green; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;/*print_headers = 'on'*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;absolute_column_width =&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'35,15,20,30,15,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;proc report data=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;mnth.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&amp;amp;hedyr._&amp;amp;currbuild&lt;BR /&gt;nowd style(header)=[fontweight=bold fontsize=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define guid /display&lt;BR /&gt;style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'GUID'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define lob /display&lt;BR /&gt;style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)} &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'LOB'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define population&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;, &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'Population'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define meas_sub&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'Meas_Sub'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define key /display&lt;BR /&gt;style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'Meas_Key'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define den_feb16&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'Den&lt;BR /&gt;Feb16'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define num_feb16&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'Num&lt;BR /&gt;Feb16'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define rate_feb16&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'Rate&lt;BR /&gt;Feb16'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define den_feb15&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'Den&lt;BR /&gt;Feb15'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define num_feb15&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'Num&lt;BR /&gt;Feb15'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define rate_feb15&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'Rate&lt;BR /&gt;Feb15'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define&lt;BR /&gt;den_feb16_feb15_chg /display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times&lt;BR /&gt;New Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'DEN_Feb16&lt;BR /&gt;Feb15 Chg'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define&lt;BR /&gt;den_feb16_feb15_P_chg /display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times&lt;BR /&gt;New Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'DEN_Feb16&lt;BR /&gt;Feb15 % Chg'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define&lt;BR /&gt;num_feb16_feb15_chg /display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times&lt;BR /&gt;New Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'NUM_Feb16&lt;BR /&gt;Feb15 Chg'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define&lt;BR /&gt;num_feb16_feb15_P_chg /display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times&lt;BR /&gt;New Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'NUM_Feb16&lt;BR /&gt;Feb15 % Chg'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define&lt;BR /&gt;rate_feb16_feb15_chg /display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times&lt;BR /&gt;New Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'RATE_Feb16&lt;BR /&gt;Feb15 Chg'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define&lt;BR /&gt;rate_feb16_feb15_P_chg /display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times&lt;BR /&gt;New Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;'RATE&lt;BR /&gt;Feb16 Feb15 % Chg'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define den_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;currmnth1.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Den&lt;BR /&gt;&amp;amp;currmnth1."&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define num_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;currmnth1.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Num&lt;BR /&gt;&amp;amp;currmnth1."&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define rate_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;currmnth1.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Rate&lt;BR /&gt;&amp;amp;currmnth1."&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define den_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;currmnth2.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Den&lt;BR /&gt;&amp;amp;currmnth2."&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define num_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;currmnth2.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Num&lt;BR /&gt;&amp;amp;currmnth2."&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;define rate_&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;currmnth2.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;&lt;BR /&gt;/display style = {just=left font = (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Times New&lt;BR /&gt;Roman"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;,&lt;/SPAN&gt;&lt;STRONG style="background: white; color: teal; font-family: 'Courier New'; font-size: 11pt;"&gt;7&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;pt)}&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 11pt;"&gt;"Rate&lt;BR /&gt;&amp;amp;currmnth2."&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 18:03:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/BUILDING-A-REPORT-ADDING-A-VARIABLE-EACH-MONTH/m-p/206548#M13710</guid>
      <dc:creator>TracyG</dc:creator>
      <dc:date>2015-06-15T18:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: BUILDING A REPORT ADDING A VARIABLE EACH MONTH.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/BUILDING-A-REPORT-ADDING-A-VARIABLE-EACH-MONTH/m-p/206549#M13711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I took a different approach and used proc datasets with contents and created a string of the variable headings in the dataset.&amp;nbsp;&amp;nbsp; Then used the string to create the columns in proc reports.&amp;nbsp; Works great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: yellow; mso-highlight: yellow; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 11pt; background: yellow; mso-highlight: yellow; font-family: 'Courier New';"&gt;datasets&lt;/STRONG&gt; &lt;SPAN style="background: yellow; color: blue; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;library&lt;/SPAN&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;=mnth &lt;/SPAN&gt;&lt;SPAN style="background: yellow; color: blue; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;nolist&lt;/SPAN&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: yellow; color: blue; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;contents&lt;/SPAN&gt; &lt;SPAN style="background: yellow; color: blue; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;=&amp;amp;hedyr._&amp;amp;currbuild._1 &lt;/SPAN&gt;&lt;SPAN style="background: yellow; color: blue; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;varnum&lt;/SPAN&gt; &lt;SPAN style="background: yellow; color: blue; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;short&lt;/SPAN&gt; &lt;SPAN style="background: yellow; color: blue; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;=varlist ; &lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: yellow; mso-highlight: yellow; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: yellow; mso-highlight: yellow; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 11pt; background: yellow; mso-highlight: yellow; font-family: 'Courier New';"&gt;sort&lt;/STRONG&gt; &lt;SPAN style="background: yellow; color: blue; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;=mnth.varlist(&lt;/SPAN&gt;&lt;SPAN style="background: yellow; color: blue; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;keep&lt;/SPAN&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;=name varnum);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt; &lt;SPAN style="background: yellow; color: blue; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt; varnum;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt; &lt;STRONG style="color: navy; font-size: 11pt; background: yellow; mso-highlight: yellow; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt; &lt;STRONG style="color: navy; font-size: 11pt; background: yellow; mso-highlight: yellow; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 11pt; background: yellow; mso-highlight: yellow; font-family: 'Courier New';"&gt;sql&lt;/STRONG&gt; &lt;SPAN style="background: yellow; color: blue; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;noprint&lt;/SPAN&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;&lt;SPAN style="background: yellow; color: blue; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;&lt;SPAN style="color: #575757; font-family: Arial; font-size: 10pt; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;select&lt;/SPAN&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt; name &lt;/SPAN&gt;&lt;SPAN style="background: yellow; color: blue; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;into&lt;/SPAN&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt; :var_string separated by &lt;/SPAN&gt;&lt;SPAN style="background: yellow; color: purple; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;' '&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: yellow; color: blue; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;from &lt;/SPAN&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;mnth.varlist&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;&lt;BR /&gt;; quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: yellow; color: blue; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt; &amp;amp;var_string;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;Proc report data=mnth..........;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: yellow; color: black; font-family: 'Courier New'; font-size: 11pt; mso-highlight: yellow;"&gt;column &amp;amp;var_string;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 12:44:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/BUILDING-A-REPORT-ADDING-A-VARIABLE-EACH-MONTH/m-p/206549#M13711</guid>
      <dc:creator>TracyG</dc:creator>
      <dc:date>2015-06-17T12:44:55Z</dc:date>
    </item>
  </channel>
</rss>

