<?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 macro code for titles and footnotes in report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/macro-code-for-titles-and-footnotes-in-report/m-p/11367#M1033</link>
    <description>H i &lt;BR /&gt;
&lt;BR /&gt;
could u tell me what is the macro code for titles and footnotes in report generation.&lt;BR /&gt;
&lt;BR /&gt;
Regards.</description>
    <pubDate>Wed, 16 Apr 2008 02:37:50 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-04-16T02:37:50Z</dc:date>
    <item>
      <title>macro code for titles and footnotes in report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-code-for-titles-and-footnotes-in-report/m-p/11367#M1033</link>
      <description>H i &lt;BR /&gt;
&lt;BR /&gt;
could u tell me what is the macro code for titles and footnotes in report generation.&lt;BR /&gt;
&lt;BR /&gt;
Regards.</description>
      <pubDate>Wed, 16 Apr 2008 02:37:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-code-for-titles-and-footnotes-in-report/m-p/11367#M1033</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-04-16T02:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: macro code for titles and footnotes in report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-code-for-titles-and-footnotes-in-report/m-p/11368#M1034</link>
      <description>Hi:&lt;BR /&gt;
  I'm not sure what you mean by macro code for titles and footnotes. SAS has some automatic macro variables that it creates and which you can use in a SAS title (or footnote) statement:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing;&lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
  title "Report Created on: &amp;amp;SYSDATE";&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Depending on your time zone, when you run the above program, you should get a title in the output with the date supplied by the value for the automatic &amp;amp;SYSDATE macro variable. For example:&lt;BR /&gt;
[pre]&lt;BR /&gt;
 Report Created on: 15APR08&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
For more information about the automatic macro variables, look in the Macro facility documentation for these topics:&lt;BR /&gt;
Macro Language Elements --&amp;gt; Automatic Macro Variables&lt;BR /&gt;
  &lt;BR /&gt;
On the other hand, I could make my own macro variable or macro variables to be used in a title -- so this code creates some macro variables:&lt;BR /&gt;
[pre]&lt;BR /&gt;
%let myfave = Kermit;&lt;BR /&gt;
%let myshow = Sesame Street;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
and now I want to use them:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing;&lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
  title "My favorite Muppet is: &amp;amp;myfave";&lt;BR /&gt;
  title2 "On the &amp;amp;myshow show";&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
which results in:&lt;BR /&gt;
[pre]&lt;BR /&gt;
My favorite Muppet is: Kermit&lt;BR /&gt;
  On the Sesame Street show&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
For more help on using Macro variables, you could read the Macro facility documentation. In addition, you could consult with Tech Support for help with a particular title or footnote need.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 16 Apr 2008 04:51:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-code-for-titles-and-footnotes-in-report/m-p/11368#M1034</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-04-16T04:51:24Z</dc:date>
    </item>
  </channel>
</rss>

