<?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 Help with SAS Global Statement not supported in PROC SQL in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-SAS-Global-Statement-not-supported-in-PROC-SQL/m-p/392113#M66262</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why does this give me a warning "This SAS global statement is not supported in PROC SQL. It has been ignored.&lt;/P&gt;&lt;P&gt;It is ignoring the WHERE line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there another way I can dynamically use the 1st day of the previous month (based on yesterday) and yesterday for my startdate and enddate?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%LET startDate = intnx('month',today()-1,-1,"BEGINNING");
%LET endDate = today()-1;

proc sql;
  DELETE FROM CCEXTCSD.SQA_RESULTS;
  WHERE EVAL_LOCAL_DATE BETWEEN &amp;amp;startDate AND &amp;amp;endDate;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Aug 2017 06:55:34 GMT</pubDate>
    <dc:creator>bradja</dc:creator>
    <dc:date>2017-08-31T06:55:34Z</dc:date>
    <item>
      <title>Help with SAS Global Statement not supported in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-SAS-Global-Statement-not-supported-in-PROC-SQL/m-p/392113#M66262</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why does this give me a warning "This SAS global statement is not supported in PROC SQL. It has been ignored.&lt;/P&gt;&lt;P&gt;It is ignoring the WHERE line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there another way I can dynamically use the 1st day of the previous month (based on yesterday) and yesterday for my startdate and enddate?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%LET startDate = intnx('month',today()-1,-1,"BEGINNING");
%LET endDate = today()-1;

proc sql;
  DELETE FROM CCEXTCSD.SQA_RESULTS;
  WHERE EVAL_LOCAL_DATE BETWEEN &amp;amp;startDate AND &amp;amp;endDate;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 06:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-SAS-Global-Statement-not-supported-in-PROC-SQL/m-p/392113#M66262</guid>
      <dc:creator>bradja</dc:creator>
      <dc:date>2017-08-31T06:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SAS Global Statement not supported in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-SAS-Global-Statement-not-supported-in-PROC-SQL/m-p/392118#M66263</link>
      <description>&lt;P&gt;Have you tried removing the extra semicolon after SQA_RESULTS? &amp;nbsp;WHERE should be a clause, not a separate statement.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 07:47:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-SAS-Global-Statement-not-supported-in-PROC-SQL/m-p/392118#M66263</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-08-31T07:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SAS Global Statement not supported in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-SAS-Global-Statement-not-supported-in-PROC-SQL/m-p/392396#M66266</link>
      <description>&lt;P&gt;*facepalm*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course! I've removed the semicolon and it's working fine now &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 23:32:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-SAS-Global-Statement-not-supported-in-PROC-SQL/m-p/392396#M66266</guid>
      <dc:creator>bradja</dc:creator>
      <dc:date>2017-08-31T23:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SAS Global Statement not supported in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-SAS-Global-Statement-not-supported-in-PROC-SQL/m-p/459412#M70233</link>
      <description>&lt;P&gt;The same issue happened to me&amp;nbsp;&lt;img id="smileylol" class="emoticon emoticon-smileylol" src="https://communities.sas.com/i/smilies/16x16_smiley-lol.png" alt="Smiley LOL" title="Smiley LOL" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 16:51:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-SAS-Global-Statement-not-supported-in-PROC-SQL/m-p/459412#M70233</guid>
      <dc:creator>eduardocuco</dc:creator>
      <dc:date>2018-05-02T16:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with SAS Global Statement not supported in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-SAS-Global-Statement-not-supported-in-PROC-SQL/m-p/516429#M73266</link>
      <description>Thank you!</description>
      <pubDate>Tue, 27 Nov 2018 17:47:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-SAS-Global-Statement-not-supported-in-PROC-SQL/m-p/516429#M73266</guid>
      <dc:creator>adrianet86</dc:creator>
      <dc:date>2018-11-27T17:47:08Z</dc:date>
    </item>
  </channel>
</rss>

