<?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: How you can conditionally execute SAS global statements in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Solution-How-you-can-conditionally-execute-SAS-global-statements/m-p/733553#M228561</link>
    <description>&lt;P&gt;I would title this thread "How to: Conditionally execute SAS global statements"&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;H2 class="message-subject"&gt;&lt;SPAN class="lia-message-read"&gt;&lt;SPAN&gt;to carry the fact that this is not a question.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H2&gt;</description>
    <pubDate>Tue, 13 Apr 2021 22:06:58 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2021-04-13T22:06:58Z</dc:date>
    <item>
      <title>Solution: How you can conditionally execute SAS global statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solution-How-you-can-conditionally-execute-SAS-global-statements/m-p/733476#M228544</link>
      <description>&lt;P&gt;Everybody is familiar with &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/p08dfq4p2zd7ijn1aoeliru9g5xm.htm" target="_self"&gt;SAS global statements&lt;/A&gt;, such as&lt;/P&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;FILENAME statement&lt;span class="lia-inline-image-display-wrapper lia-image-align-right" image-alt="managing-global-statements.jpg" style="width: 260px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/57513i175796D42AB5B865/image-dimensions/260x174?v=v2" width="260" height="174" role="button" title="managing-global-statements.jpg" alt="managing-global-statements.jpg" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;LIBNAME statement&lt;/LI&gt;
&lt;LI&gt;OPTIONS statement&lt;/LI&gt;
&lt;LI&gt;TITLE statement&lt;/LI&gt;
&lt;LI&gt;FOOTNOTE statement&lt;/LI&gt;
&lt;LI&gt;X statement, etc.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;They can be used in SAS open code, within SAS macros, as well as within DATA and PROC steps.&lt;/P&gt;
&lt;P&gt;Global statements are &lt;EM&gt;not executable&lt;/EM&gt; by definition, meaning they are not executed during individual iterations of the DATA step. However, they do "take effect", that is in essence "execute" at some point in a SAS program. &lt;SPAN class="q-box qu-userSelect--text" style="box-sizing: border-box;"&gt;&lt;SPAN style="font-weight: normal; font-style: normal; background: rgba(0, 0, 0, 0) none repeat scroll 0% 0%;"&gt;To lift the veil of mystery about SAS global statements' habits I recently wrote a blog post&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H1 class="post-title item fn"&gt;&lt;A href="https://blogs.sas.com/content/sgf/2021/03/15/how-to-conditionally-execute-sas-global-statements/" target="_self"&gt;How to conditionally execute SAS global statements&lt;/A&gt;&lt;/H1&gt;
&lt;P&gt;&lt;SPAN class="q-box qu-userSelect--text" style="box-sizing: border-box;"&gt;&lt;SPAN style="font-weight: normal; font-style: normal; background: rgba(0, 0, 0, 0) none repeat scroll 0% 0%;"&gt;Take a read and you will never be confused by the global statements' behavior again.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="q-box qu-userSelect--text" style="box-sizing: border-box;"&gt;&lt;SPAN style="font-weight: normal; font-style: normal; background: rgba(0, 0, 0, 0) none repeat scroll 0% 0%;"&gt;Happy programming,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="q-box qu-userSelect--text" style="box-sizing: border-box;"&gt;&lt;SPAN style="font-weight: normal; font-style: normal; background: rgba(0, 0, 0, 0) none repeat scroll 0% 0%;"&gt;Leonid&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 16:02:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solution-How-you-can-conditionally-execute-SAS-global-statements/m-p/733476#M228544</guid>
      <dc:creator>LeonidBatkhan</dc:creator>
      <dc:date>2021-04-14T16:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: How you can conditionally execute SAS global statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solution-How-you-can-conditionally-execute-SAS-global-statements/m-p/733553#M228561</link>
      <description>&lt;P&gt;I would title this thread "How to: Conditionally execute SAS global statements"&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;H2 class="message-subject"&gt;&lt;SPAN class="lia-message-read"&gt;&lt;SPAN&gt;to carry the fact that this is not a question.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H2&gt;</description>
      <pubDate>Tue, 13 Apr 2021 22:06:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solution-How-you-can-conditionally-execute-SAS-global-statements/m-p/733553#M228561</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-04-13T22:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: How you can conditionally execute SAS global statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solution-How-you-can-conditionally-execute-SAS-global-statements/m-p/733556#M228562</link>
      <description>&lt;P&gt;Hi &lt;A class="trigger-hovercard" style="color: #009999;" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961" target="_blank" rel="noopener"&gt;ChrisNZ&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;That is how the blog post is titled. As for the Community "announcement" title, there are two attributes which make it non-question: 1) no "?" at the end, and 2) "can" stands after "you", in a question it would've been in reverse &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 22:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solution-How-you-can-conditionally-execute-SAS-global-statements/m-p/733556#M228562</guid>
      <dc:creator>LeonidBatkhan</dc:creator>
      <dc:date>2021-04-13T22:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: How you can conditionally execute SAS global statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solution-How-you-can-conditionally-execute-SAS-global-statements/m-p/733558#M228564</link>
      <description>&lt;P&gt;More emphasis on the &lt;EM&gt;demonstration&lt;/EM&gt; rather than &lt;EM&gt;question&lt;/EM&gt; aspect can only be a good thing imho, but your call obviously, just a suggestion &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 22:18:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solution-How-you-can-conditionally-execute-SAS-global-statements/m-p/733558#M228564</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-04-13T22:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: How you can conditionally execute SAS global statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Solution-How-you-can-conditionally-execute-SAS-global-statements/m-p/733814#M228660</link>
      <description>&lt;P&gt;Hi &lt;A class="trigger-hovercard" style="color: #009999;" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961" target="_blank"&gt;ChrisNZ&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Per your advice, I modified the title to be "&lt;SPAN class="lia-message-read"&gt;Solution: How you can conditionally execute SAS global statements". &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-message-read"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-message-read"&gt;Leonid&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 16:04:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Solution-How-you-can-conditionally-execute-SAS-global-statements/m-p/733814#M228660</guid>
      <dc:creator>LeonidBatkhan</dc:creator>
      <dc:date>2021-04-14T16:04:53Z</dc:date>
    </item>
  </channel>
</rss>

