<?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: TITLE statements in SAS Studio - are they global statements? in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/TITLE-statements-in-SAS-Studio-are-they-global-statements/m-p/948100#M11358</link>
    <description>&lt;P&gt;Are you submitting one block of code?&amp;nbsp; If so then you should see normal behavior.&lt;/P&gt;
&lt;P&gt;If you are submitting sending it as two separate submissions then the code that SAS/Studio adds before and after your code is what is clearing the title settings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can tell SAS/Studio to go into "interactive" mode and it will not clear the titles between submission.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1729271281683.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101478i1FB8CA8EAEE03F70/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1729271281683.png" alt="Tom_0-1729271281683.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Oct 2024 17:08:18 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2024-10-18T17:08:18Z</dc:date>
    <item>
      <title>TITLE statements in SAS Studio - are they global statements?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/TITLE-statements-in-SAS-Studio-are-they-global-statements/m-p/948095#M11357</link>
      <description>&lt;P&gt;Long time SAS user here. I've been working in SAS Studio that last three years. One thing I can't figure out:&amp;nbsp; TITLE statement no longer seems to function as a global statement in this environment.&amp;nbsp; Can anyone confirm that? I tried searching but couldn't find anything on SAS support to find the answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example 1:&amp;nbsp; I can run this and get two titles in my output&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;title1 "This is TITLE 1";&lt;BR /&gt;title2 "This is TITLE 2";&lt;/P&gt;&lt;P&gt;proc freq data=analy;&lt;BR /&gt;tables var1 var2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example 2: If I run it like this, I get Title1 for my first proc freq and Title2 ONLY for my second proc freq. I would expect to see Title1 and Title2 for the second proc freq. This is how it would work in SAS EG or PC-SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;title1 "This is TITLE 1";&lt;/P&gt;&lt;P&gt;proc freq data=analy;&lt;BR /&gt;tables var1 var2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;title2 "This is TITLE 2";&lt;/P&gt;&lt;P&gt;proc freq data=analy;&lt;BR /&gt;tables var3 var4;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 16:57:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/TITLE-statements-in-SAS-Studio-are-they-global-statements/m-p/948095#M11357</guid>
      <dc:creator>Eric_P_Elkin</dc:creator>
      <dc:date>2024-10-18T16:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: TITLE statements in SAS Studio - are they global statements?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/TITLE-statements-in-SAS-Studio-are-they-global-statements/m-p/948100#M11358</link>
      <description>&lt;P&gt;Are you submitting one block of code?&amp;nbsp; If so then you should see normal behavior.&lt;/P&gt;
&lt;P&gt;If you are submitting sending it as two separate submissions then the code that SAS/Studio adds before and after your code is what is clearing the title settings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can tell SAS/Studio to go into "interactive" mode and it will not clear the titles between submission.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1729271281683.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101478i1FB8CA8EAEE03F70/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1729271281683.png" alt="Tom_0-1729271281683.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 17:08:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/TITLE-statements-in-SAS-Studio-are-they-global-statements/m-p/948100#M11358</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-10-18T17:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: TITLE statements in SAS Studio - are they global statements?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/TITLE-statements-in-SAS-Studio-are-they-global-statements/m-p/948102#M11359</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/158542"&gt;@Eric_P_Elkin&lt;/a&gt;, in SAS Studio the wrapper code includes a null TITLE and FOOTNOTE statement (among other things) to clear all titles and footnotes. The wrapper code is included with every run.&amp;nbsp;You can view this wrapper code in SAS Studio by navigating to &lt;STRONG&gt;More Options&lt;/STRONG&gt; (three dot menu at the top right of the editor window) &lt;STRONG&gt;&amp;gt; Open in a browser tab &amp;gt; Log&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My program has this at lines 10-11.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="antonbcristina_3-1729271665429.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101479i0BF91D38E289E80C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="antonbcristina_3-1729271665429.png" alt="antonbcristina_3-1729271665429.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This means that when I run (a version) of your program all together (i.e. both steps together), I get the following:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="antonbcristina_0-1729271110406.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101475iC9C5B101E32C0BB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="antonbcristina_0-1729271110406.png" alt="antonbcristina_0-1729271110406.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if I run them separately I'll see the titles as you described.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="antonbcristina_1-1729271233449.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101476i3CC2DC686A8D0EE2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="antonbcristina_1-1729271233449.png" alt="antonbcristina_1-1729271233449.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="antonbcristina_2-1729271249055.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101477iBFCF7530626F5B32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="antonbcristina_2-1729271249055.png" alt="antonbcristina_2-1729271249055.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 17:16:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/TITLE-statements-in-SAS-Studio-are-they-global-statements/m-p/948102#M11359</guid>
      <dc:creator>antonbcristina</dc:creator>
      <dc:date>2024-10-18T17:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: TITLE statements in SAS Studio - are they global statements?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/TITLE-statements-in-SAS-Studio-are-they-global-statements/m-p/948104#M11360</link>
      <description>&lt;P&gt;Thanks for the info/suggestions! Makes sense.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 17:28:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/TITLE-statements-in-SAS-Studio-are-they-global-statements/m-p/948104#M11360</guid>
      <dc:creator>Eric_P_Elkin</dc:creator>
      <dc:date>2024-10-18T17:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: TITLE statements in SAS Studio - are they global statements?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/TITLE-statements-in-SAS-Studio-are-they-global-statements/m-p/964685#M11393</link>
      <description>&lt;P&gt;I've always said that SAS Documentation puts the TITLE statements in the wrong place.&amp;nbsp; FOOTNOTE too.&amp;nbsp; They really do belong outside/above the PROC and not inside/within.&lt;BR /&gt;&lt;BR /&gt;TITLE1 'SAS Baseball data' ;&lt;BR /&gt;proc print data=sashelp.baseball ;&lt;/P&gt;&lt;P&gt;run ;&lt;BR /&gt;&lt;BR /&gt;But the documentation always shows this...&lt;BR /&gt;proc print data=sashelp.baseball ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;TITLE1 'SAS Baseball data' ;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The TITLE statement declared remains in place until changed.&amp;nbsp; Logically, it belongs outside the PROC and not inside the PROC.&amp;nbsp; So far, they haven't listened to me on that one...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Apr 2025 00:04:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/TITLE-statements-in-SAS-Studio-are-they-global-statements/m-p/964685#M11393</guid>
      <dc:creator>PaulMcDonald-AZ</dc:creator>
      <dc:date>2025-04-20T00:04:18Z</dc:date>
    </item>
  </channel>
</rss>

