<?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 Add a Banner to Report with dynamic variables in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-a-Banner-to-Report-with-dynamic-variables/m-p/81676#M7933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm totally new to EG (ver 5.1) and need some help putting all the pieces of a Report together that will run multiple iterations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First&amp;nbsp; I need to add a banner to the top of the report that will change with each iteration of the data: i.e&amp;nbsp; Group:&amp;nbsp; Acme Athletics&amp;nbsp; Location: Smallville&amp;nbsp; Type: Senior&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is being created by Group, but from multiple programs, and the Report is a combination of graphs and text.&amp;nbsp; I feel like I need one big macro to bundle it all together, plus add the touches like Group name, Location, etc.&amp;nbsp; Of course each part has to be a specific font and Color.&amp;nbsp; There is also a logo in the Header area -- that was added by referencing a .jpeg file in the Image section of Report&amp;gt; Header/Footer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As each Group report is created, they need to be saved to a .pdf named for each group.&amp;nbsp; Any help would be appreciated.&amp;nbsp; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 May 2013 19:24:15 GMT</pubDate>
    <dc:creator>onpoint1</dc:creator>
    <dc:date>2013-05-21T19:24:15Z</dc:date>
    <item>
      <title>Add a Banner to Report with dynamic variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-a-Banner-to-Report-with-dynamic-variables/m-p/81676#M7933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm totally new to EG (ver 5.1) and need some help putting all the pieces of a Report together that will run multiple iterations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First&amp;nbsp; I need to add a banner to the top of the report that will change with each iteration of the data: i.e&amp;nbsp; Group:&amp;nbsp; Acme Athletics&amp;nbsp; Location: Smallville&amp;nbsp; Type: Senior&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is being created by Group, but from multiple programs, and the Report is a combination of graphs and text.&amp;nbsp; I feel like I need one big macro to bundle it all together, plus add the touches like Group name, Location, etc.&amp;nbsp; Of course each part has to be a specific font and Color.&amp;nbsp; There is also a logo in the Header area -- that was added by referencing a .jpeg file in the Image section of Report&amp;gt; Header/Footer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As each Group report is created, they need to be saved to a .pdf named for each group.&amp;nbsp; Any help would be appreciated.&amp;nbsp; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 19:24:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-a-Banner-to-Report-with-dynamic-variables/m-p/81676#M7933</guid>
      <dc:creator>onpoint1</dc:creator>
      <dc:date>2013-05-21T19:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add a Banner to Report with dynamic variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-a-Banner-to-Report-with-dynamic-variables/m-p/81677#M7934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does a banner mean to you?&lt;/P&gt;&lt;P&gt;Is it just text?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so and you're using PDF as a destination you can look into the ODS PDF TEXT Line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does sound like you'll need a macro if you want different files for each group, so the macro variables for the group/location/type can feed into the ODS PDF TEXT Line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 19:27:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-a-Banner-to-Report-with-dynamic-variables/m-p/81677#M7934</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-05-21T19:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Add a Banner to Report with dynamic variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-a-Banner-to-Report-with-dynamic-variables/m-p/81678#M7935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; The banner is a 1 inch section at the top of each page of the report.&amp;nbsp; On the left is the logo, on the right are text values such as&lt;/P&gt;&lt;P&gt;GROUP:&amp;nbsp; &amp;amp;groupname&amp;nbsp; LOCATION:&amp;nbsp; &amp;amp;locname.&amp;nbsp; Under the banner is a line delineating the banner from the rest of the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please show an example?&amp;nbsp; There are so many ODS PDF references.&amp;nbsp; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 20:15:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-a-Banner-to-Report-with-dynamic-variables/m-p/81678#M7935</guid>
      <dc:creator>onpoint1</dc:creator>
      <dc:date>2013-05-21T20:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Add a Banner to Report with dynamic variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-a-Banner-to-Report-with-dynamic-variables/m-p/81679#M7936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is an example that's probably similar to one I've posted before. I'd recommend you search the foum and/or open a track with Tech Support. You haven't shown any code or even any example of what you want. You seem to have some ideas, of using macro variables, but seeing the macro variables in the context of your code might be helpful to anyone wanting to come up with a sample for you. Otherwise, somebody might be foolish enough to spend time on an example for you and then you might say "oh, no, that's not how I'm using macro variables" or some such.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; That's why I didn't spend a lot of time on the example, this is one I've used before, so you will notice that there's no underline and the "logo" (kermit.gif) is specified on the right, not the left. But, assuming you have c:\temp\kermit.gif (or some other image) on you system, this code should be fairly easy for you to modify and run as a conceptual proof of the ability to change title "banner" strings in between report steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;options nodate number;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods listing close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;** use blank title 1 to put some space under page number;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;%let ttext = Title 1;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;%let comp=My FIRST Company;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods pdf file='c:\temp\logo_alt.pdf';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods escapechar='~';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;title ' ';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;title2 j=l "~S={vjust=m} &amp;amp;ttext" j=c "&amp;amp;comp"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; j=r '~S={preimage="c:\temp\kermit.gif"}';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc report data=sashelp.shoes(obs=6) nowd;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; where region = 'Canada';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; column region product sales;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define region / 'Region';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;** second report;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;%let ttext = Title 2;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;%let comp= My OTHER Company;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods escapechar='~';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;title ' ';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;title2 j=l "~S={vjust=m} &amp;amp;ttext" j=c "&amp;amp;comp"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; j=r '~S={preimage="c:\temp\kermit.gif"}';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc report data=sashelp.shoes(obs=6) nowd;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; where region = 'Western Europe';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; column region product sales;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define region / 'Region';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods pdf close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;title;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 22:36:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-a-Banner-to-Report-with-dynamic-variables/m-p/81679#M7936</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-05-21T22:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Add a Banner to Report with dynamic variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-a-Banner-to-Report-with-dynamic-variables/m-p/81680#M7937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're totally inexperienced with SAS I'd recommend a different route to start off with. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your tables are fixed length, one option that's relatively straightforward is to create a template in excel and then populate that template using SAS and some exports.&amp;nbsp; Excel 2010 will allow you save a file as a PDF that will have the characteristics that you want.&amp;nbsp; Its not a bad way to start off to "prototype" a report regardless as it allows you to change things more easily.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 02:05:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-a-Banner-to-Report-with-dynamic-variables/m-p/81680#M7937</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-05-22T02:05:17Z</dc:date>
    </item>
  </channel>
</rss>

