<?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 Re: nonsense title text showing up in output results in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/nonsense-title-text-showing-up-in-output-results/m-p/107981#M22448</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; First rule of Titles and Footnotes: they are global. They stay in effect until changed or deleted. To delete a TITLE or FOOTNOTE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am something of a control freak. I put a TITLE statement for every procedure step I have. But then, I also RESET or DELETE that title statement after the RUN; I know, it seems silly to do that, because if the next procedure has a TITLE statement, that is what will be used. But if I do not RESET the TITLE statement after my -last- procedure, then that TITLE statement will hang around and impact subsequent steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; So, here's my model. No matter what. All the time, every time. What is within the procedure step belongs to the procedure step. After the procedure, I clear the title and footnote used for the procedure. All the time.&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;proc whatever data=mydata;&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; title 'Whatever';&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; footnote 'Whatever Else';&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; something;&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; something;&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; something else;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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;title;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;footnote;&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; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc wombat data=moredata;&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; title 'Whatever Again';&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; footnote; /* no footnote for this step */&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; something;&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; something;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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;title;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;footnote;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Jun 2013 00:00:42 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2013-06-15T00:00:42Z</dc:date>
    <item>
      <title>nonsense title text showing up in output results</title>
      <link>https://communities.sas.com/t5/SAS-Programming/nonsense-title-text-showing-up-in-output-results/m-p/107980#M22447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to loop through a macro function which produces multiple plots/tables (via proc sgplot &amp;amp; proc tabulate) for different variables - a different variable is plotted in each call of the macro. The very last plot within the macro is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc tabulate data=wr.exante_shock_scenarios;&lt;/P&gt;&lt;P&gt;&lt;EM style="text-decoration: underline;"&gt;&lt;STRONG&gt;&amp;nbsp; title "&amp;amp;Prodcat Shock Scenario Yield Rate Forecasts";&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class 'date'n;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var Flat_Rate Shock_Up_100_Rate Shock_Up_200_Rate Shock_Down_100_Rate Gradual_Up_100_Rate Gradual_Up_200_Rate Gradual_Down_100_Rate;&lt;/P&gt;&lt;P&gt;&amp;nbsp; table mean=''*( Flat_Rate="&amp;amp;Prodcat. Flat_Rate"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Shock_Up_100_Rate="&amp;amp;Prodcat. Shock_Up_100_Rate"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Shock_Up_200_Rate="&amp;amp;Prodcat. Shock_Up_200_Rate"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Shock_Down_100_Rate="&amp;amp;Prodcat. Shock_Down_100_Rate"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Gradual_Up_100_Rate="&amp;amp;Prodcat. Gradual_Up_100_Rate"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Gradual_Up_200_Rate="&amp;amp;Prodcat. Gradual_Up_200_Rate"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Gradual_Down_100_Rate="&amp;amp;Prodcat. Gradual_Down_100_Rate")&lt;/P&gt;&lt;P&gt;&amp;nbsp; *(format=comma20.2),date;&lt;/P&gt;&lt;P&gt;&amp;nbsp; where prodcat="&amp;amp;Prodcat" and date in ('31DEC2012'd,'31DEC2013'd,'31DEC2014'd,'31DEC2015'd);&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This issue is - the text in that 'title' statement gets output above every subsequent table/produced, which is very misleading because now each of my output plots has a title above - specifying that it is a plot for the previous variable - not the actual current variable being plotted.&lt;/P&gt;&lt;P&gt;I.E. My first two calls to the macro producing the output are as follows:&lt;/P&gt;&lt;P&gt;%Produce_Output(BUSMMSADV);&lt;/P&gt;&lt;P&gt;%Produce_Output(RETNOW);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now for all of the output plots/tables (the macro contains 4 sgplot statements, and 2 proc tabulates), for the call with parameter 'RETNOW' will contain the text "BUSMMSADV Shock Scenario Yield Rate Forecasts" - which is incorrect, and the call with 'BUSMMSADV' as the parameter will contain that line of text, except listing the &amp;amp;prodcat variable that was passed in on the last time that I executed the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway that I can clear this "item title" output so that it is only present in the proc tabulate statement that it was declared within?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if I am not explaining this well enough, I tried my best but I feel that I may be somewhat unclear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot guys!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 20:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/nonsense-title-text-showing-up-in-output-results/m-p/107980#M22447</guid>
      <dc:creator>AllSoEasy</dc:creator>
      <dc:date>2013-06-14T20:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: nonsense title text showing up in output results</title>
      <link>https://communities.sas.com/t5/SAS-Programming/nonsense-title-text-showing-up-in-output-results/m-p/107981#M22448</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; First rule of Titles and Footnotes: they are global. They stay in effect until changed or deleted. To delete a TITLE or FOOTNOTE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am something of a control freak. I put a TITLE statement for every procedure step I have. But then, I also RESET or DELETE that title statement after the RUN; I know, it seems silly to do that, because if the next procedure has a TITLE statement, that is what will be used. But if I do not RESET the TITLE statement after my -last- procedure, then that TITLE statement will hang around and impact subsequent steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; So, here's my model. No matter what. All the time, every time. What is within the procedure step belongs to the procedure step. After the procedure, I clear the title and footnote used for the procedure. All the time.&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;proc whatever data=mydata;&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; title 'Whatever';&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; footnote 'Whatever Else';&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; something;&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; something;&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; something else;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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;title;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;footnote;&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; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc wombat data=moredata;&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; title 'Whatever Again';&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; footnote; /* no footnote for this step */&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; something;&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; something;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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;title;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;footnote;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jun 2013 00:00:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/nonsense-title-text-showing-up-in-output-results/m-p/107981#M22448</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-06-15T00:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: nonsense title text showing up in output results</title>
      <link>https://communities.sas.com/t5/SAS-Programming/nonsense-title-text-showing-up-in-output-results/m-p/107982#M22449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahhh I see. I was trying different ODS options, I didn't think it would be as simple as just "title;" Thank you very much Cynthia!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 15:35:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/nonsense-title-text-showing-up-in-output-results/m-p/107982#M22449</guid>
      <dc:creator>AllSoEasy</dc:creator>
      <dc:date>2013-06-17T15:35:28Z</dc:date>
    </item>
  </channel>
</rss>

