<?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: Disable SAS Warning in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Disable-SAS-Warning/m-p/520014#M3914</link>
    <description>&lt;P&gt;Try instead of&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token string"&gt;"MKDIR ""%P_ROOT%\_"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token string"&gt;'MKDIR ""%P_ROOT%\_'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token string"&gt;Single quotes should block attempted resolution of macro &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Dec 2018 15:54:15 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-12-10T15:54:15Z</dc:date>
    <item>
      <title>Disable SAS Warning</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Disable-SAS-Warning/m-p/519999#M3912</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know if there is a way to disable (properly) false warning?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On my current project, I have to write dynamically few dos batch with variables thanks to the SET.&lt;/P&gt;&lt;P&gt;But SAS keeps warning me with the "WARNING: Apparent invocation of macro P_ROOT not resolved." because of this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let myBat = &amp;amp;path_2_script.\copy.bat;

data _null_;
  file "&amp;amp;myBat." encoding="WLATIN1";
  length line $1024;
  put "echo off";

  line = cats("SET P_ROOT=", "&amp;amp;myRoot.");
  put line;
run;

data _null_;
  set l_folder_2_check;
  file "&amp;amp;myBat." mod;
  length line $1024;

  line = cat("MKDIR ""%P_ROOT%\_", trim(target_env), "_\", trim(current_folder), """ 2&amp;gt;NUL");
  put line;
run;
/**
  I get here the warning because of the DOS var %P_ROOT%&lt;BR /&gt;&lt;BR /&gt;  After the MKDIR, I have a dynamic COPY instructions...

  Once the script is done, when I call it with a X command, I get also new warning... (one for each call of %P_ROOT% lol)
 **/&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have tried all the options I know, googled also for it without any satisfying solution...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx for reading&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Michel&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 15:47:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Disable-SAS-Warning/m-p/519999#M3912</guid>
      <dc:creator>k4minou</dc:creator>
      <dc:date>2018-12-10T15:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Disable SAS Warning</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Disable-SAS-Warning/m-p/520014#M3914</link>
      <description>&lt;P&gt;Try instead of&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token string"&gt;"MKDIR ""%P_ROOT%\_"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token string"&gt;'MKDIR ""%P_ROOT%\_'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token string"&gt;Single quotes should block attempted resolution of macro &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 15:54:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Disable-SAS-Warning/m-p/520014#M3914</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-12-10T15:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Disable SAS Warning</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Disable-SAS-Warning/m-p/520036#M3918</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;noted, single quotes prevent any activity by the macro processor, including trying to locate a macro named %P_ROOT.&amp;nbsp; However, that change needs to be applied in a few areas of your program.&amp;nbsp; Consider this line, for example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;line &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;cat&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"MKDIR ""%P_ROOT%\_"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;trim&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;target_env&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"_\"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;trim&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;current_folder&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;""" 2&amp;gt;NUL"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would need to change the first parameter to CAT, to use single quotes as the outermost quotes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;line &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;cat&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;('&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;MKDIR "%P_ROOT%\_'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;trim&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;target_env&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"_\"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;trim&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;current_folder&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;""" 2&amp;gt;NUL"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 16:27:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Disable-SAS-Warning/m-p/520036#M3918</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-12-10T16:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Disable SAS Warning</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Disable-SAS-Warning/m-p/520038#M3919</link>
      <description>Thx both of you =} I'll try tomorrow&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Mon, 10 Dec 2018 16:32:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Disable-SAS-Warning/m-p/520038#M3919</guid>
      <dc:creator>k4minou</dc:creator>
      <dc:date>2018-12-10T16:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Disable SAS Warning</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Disable-SAS-Warning/m-p/520056#M3925</link>
      <description>&lt;P&gt;If it is just about creating a directory have a look at the &lt;A href="https://go.documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p1aj29pf4cxnirn15q5hmf0tv438.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;DCREATE&lt;/A&gt; function.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 17:12:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Disable-SAS-Warning/m-p/520056#M3925</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-12-10T17:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Disable SAS Warning</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Disable-SAS-Warning/m-p/520060#M3926</link>
      <description>Thx for the function but no it's not only about creating directories =}</description>
      <pubDate>Mon, 10 Dec 2018 17:25:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Disable-SAS-Warning/m-p/520060#M3926</guid>
      <dc:creator>k4minou</dc:creator>
      <dc:date>2018-12-10T17:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Disable SAS Warning</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Disable-SAS-Warning/m-p/520285#M4005</link>
      <description>&lt;P&gt;Works like a charm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank all of you &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 08:32:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Disable-SAS-Warning/m-p/520285#M4005</guid>
      <dc:creator>k4minou</dc:creator>
      <dc:date>2018-12-11T08:32:39Z</dc:date>
    </item>
  </channel>
</rss>

