<?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 Meaning of the code %let SafeMode=0; ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Meaning-of-the-code-let-SafeMode-0/m-p/724340#M224881</link>
    <description>&lt;P&gt;Hi all SAS Users,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Today I had a chance to read some codes from other published papers. And I stuck at the first line&lt;/P&gt;
&lt;P&gt;The first line is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let SafeMode=0;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;They explain it like that but I did not understand, could you please explain it to me? I did a search from google but no document available for this code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Changing Safemode parameter to 1 would add few additional filters.  (default=0)
It is inactive in the default settings. It might be useful for first look at new datasets */
%let SafeMode=0;	&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I know %let is used to assign a value for one variable, but do not know more than that for this code.&lt;/P&gt;
&lt;P&gt;Warmest regards,&lt;/P&gt;</description>
    <pubDate>Mon, 08 Mar 2021 02:37:23 GMT</pubDate>
    <dc:creator>Phil_NZ</dc:creator>
    <dc:date>2021-03-08T02:37:23Z</dc:date>
    <item>
      <title>Meaning of the code %let SafeMode=0; ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Meaning-of-the-code-let-SafeMode-0/m-p/724340#M224881</link>
      <description>&lt;P&gt;Hi all SAS Users,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Today I had a chance to read some codes from other published papers. And I stuck at the first line&lt;/P&gt;
&lt;P&gt;The first line is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let SafeMode=0;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;They explain it like that but I did not understand, could you please explain it to me? I did a search from google but no document available for this code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Changing Safemode parameter to 1 would add few additional filters.  (default=0)
It is inactive in the default settings. It might be useful for first look at new datasets */
%let SafeMode=0;	&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I know %let is used to assign a value for one variable, but do not know more than that for this code.&lt;/P&gt;
&lt;P&gt;Warmest regards,&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 02:37:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Meaning-of-the-code-let-SafeMode-0/m-p/724340#M224881</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-03-08T02:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Meaning of the code %let SafeMode=0; ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Meaning-of-the-code-let-SafeMode-0/m-p/724341#M224882</link>
      <description>&lt;P&gt;The program assigns a value of 0 to macro variable SafeMode.&lt;/P&gt;
&lt;P&gt;What effect this has should be determined from the comment provided, and from how the macro is used.&lt;/P&gt;
&lt;P&gt;It is a user-created variable and how it's used is entirely up to the person who used it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 02:46:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Meaning-of-the-code-let-SafeMode-0/m-p/724341#M224882</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-03-08T02:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Meaning of the code %let SafeMode=0; ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Meaning-of-the-code-let-SafeMode-0/m-p/724431#M224914</link>
      <description>&lt;P&gt;If you have the entire code of the macro I will bet that you find at least one instance of&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%if &amp;amp;safemode=1 %then &amp;lt;other code&amp;gt;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;%if &amp;amp;safemode=0 %then &amp;lt;other code&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if not both. What comes after the IF is what the macro variable is controlling.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 08:50:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Meaning-of-the-code-let-SafeMode-0/m-p/724431#M224914</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-08T08:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Meaning of the code %let SafeMode=0; ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Meaning-of-the-code-let-SafeMode-0/m-p/724434#M224916</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are right! There are some lines of code exactly what you mentioned&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if &amp;amp;safemode=1 %then &amp;lt;other code&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Warm regards.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 09:01:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Meaning-of-the-code-let-SafeMode-0/m-p/724434#M224916</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-03-08T09:01:40Z</dc:date>
    </item>
  </channel>
</rss>

