<?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: Change title in Results Viewer (ODSRESULTS) for output from RSUBMIT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Change-title-in-Results-Viewer-ODSRESULTS-for-output-from/m-p/461181#M117278</link>
    <description>&lt;P&gt;Shouldn't your title statement be enclosed in quotes? And no equal signs?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title "&amp;amp;tableName. Record Count";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I'm assuming you also know you can get this information from the SASHELP.VTABLE instead of querying each table? Unless it's on a server then you have to do it this way...&lt;/P&gt;</description>
    <pubDate>Wed, 09 May 2018 20:25:10 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-05-09T20:25:10Z</dc:date>
    <item>
      <title>Change title in Results Viewer (ODSRESULTS) for output from RSUBMIT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-title-in-Results-Viewer-ODSRESULTS-for-output-from/m-p/461117#M117259</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working with a program that uses a macro in an RSUBMIT to run a PROC SQL statement to get a count for multiple tables in a database. When the results are displayed in the Results Viewer (ODSRESULTS) window, the default title is "The SAS System".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using the TITLE statement to change the title, but the title only changes in the Output window. Is there a way to change the title in the Results Viewer for results that are produced during an RSUBMIT?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd prefer &lt;U&gt;not&lt;/U&gt; to save the ODS output to a file on the remote server, download it locally, and display it in the Results Viewer window, if possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's an example of my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;RSUBMIT;

%MACRO CheckTable(tableName);
  PROC SQL;
    /* Title example output: "CustomersTbl Count" */
    TITLE &amp;amp;=tableName. Count;                /* This only sets the title in the Output window */
    SELECT
        COUNT(*) AS TOTAL_COUNT
    FROM
        &amp;amp;tableName. t1
    ;
  QUIT;
%MEND;

ENDRSUBMIT;

RSUBMIT;

%CheckTable(CustomersTbl);
%CheckTable(OrdersTbl);
%CheckTable(ProductsTbl);

ENDRSUBMIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 16:44:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-title-in-Results-Viewer-ODSRESULTS-for-output-from/m-p/461117#M117259</guid>
      <dc:creator>beacon</dc:creator>
      <dc:date>2018-05-09T16:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Change title in Results Viewer (ODSRESULTS) for output from RSUBMIT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-title-in-Results-Viewer-ODSRESULTS-for-output-from/m-p/461181#M117278</link>
      <description>&lt;P&gt;Shouldn't your title statement be enclosed in quotes? And no equal signs?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title "&amp;amp;tableName. Record Count";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I'm assuming you also know you can get this information from the SASHELP.VTABLE instead of querying each table? Unless it's on a server then you have to do it this way...&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 20:25:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-title-in-Results-Viewer-ODSRESULTS-for-output-from/m-p/461181#M117278</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-05-09T20:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Change title in Results Viewer (ODSRESULTS) for output from RSUBMIT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-title-in-Results-Viewer-ODSRESULTS-for-output-from/m-p/461314#M117336</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Shouldn't your title statement be enclosed in quotes? And no equal signs?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;,&amp;nbsp;you're right. I forgot the quotes when I was typing and the equal sign is a typo. The actual code I was using to test has quotes and no equal sign. My apologies for the mistake in the post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That being said, the title still does not change in the Results Viewer window. It changes in the Output window, but not the Results Viewer. Is there a way to get the title to change from "The SAS System" in the Results Viewer to the desired title in an RSUBMIT (without having to download anything)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;wrote:&lt;BR /&gt;&lt;P&gt;I'm assuming you also know you can get this information from the SASHELP.VTABLE instead of querying each table? Unless it's on a server then you have to do it this way...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, everything I'm working with for this particular issue is on the server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 13:44:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-title-in-Results-Viewer-ODSRESULTS-for-output-from/m-p/461314#M117336</guid>
      <dc:creator>beacon</dc:creator>
      <dc:date>2018-05-10T13:44:44Z</dc:date>
    </item>
  </channel>
</rss>

