<?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: WARNING: This SAS global statement is not supported in PROC SQL. It has been ignored. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/WARNING-This-SAS-global-statement-is-not-supported-in-PROC-SQL/m-p/537234#M147706</link>
    <description>&lt;P&gt;Are you sure whether your proc sql syntax is correct, i see one error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;select TOTAL_CR_CNT into :init_valueAMPEPCNT from perm.recordsAMPEP3;&amp;nbsp; /*shouldn't be semicolon here*/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The syntax should ideally be&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;

proc sql;

select TOTAL_CR_CNT into :init_valueAMPEPCNT from perm.recordsAMPEP3

where file_id = 'EFTAMPNZ';

quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 20 Feb 2019 22:09:03 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2019-02-20T22:09:03Z</dc:date>
    <item>
      <title>WARNING: This SAS global statement is not supported in PROC SQL. It has been ignored.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-This-SAS-global-statement-is-not-supported-in-PROC-SQL/m-p/537230#M147703</link>
      <description>&lt;P&gt;I have a SAS coding issue which I am hoping someone can assist with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My job is using the following instruction to create a SAS macro variable called &amp;amp;init_valueAMPEPCNT : -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;DIV class="text_exposed_show"&gt;&lt;P&gt;select TOTAL_CR_CNT into :init_valueAMPEPCNT from perm.recordsAMPEP3;&lt;/P&gt;&lt;P&gt;where file_id = 'EFTAMPNZ';&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem is, the job returns a condition code of RC=4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what is returned: -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;149 proc sql;&lt;/P&gt;&lt;P&gt;150 select TOTAL_CR_CNT into :init_valueAMPEPCNT from perm.recordsAMPEP3;&lt;/P&gt;&lt;P&gt;151 where file_id = 'EFTAMPNZ';&lt;/P&gt;&lt;P&gt;WARNING: This SAS global statement is not supported in PROC SQL. It has been ignored.&lt;/P&gt;&lt;P&gt;152 quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wanting a clean run of RC=0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Referring to documentation on the internet I think our version of SQL may not support this representation (with the colon&amp;nbsp; :&lt;SPAN class="_47e3 _5mfr" style="clip: auto; font-family: Helvetica,Arial,sans-serif; height: auto; line-height: 0px; overflow: visible; position: static; vertical-align: middle; white-space: normal; width: auto; margin: 0px 1px 0px 1px;"&gt;&lt;SPAN class="_7oe" style="display: inline; font-family: Helvetica,Arial,sans-serif; font-size: 0px; width: auto;"&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; to signify a macro variable).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wondering if there is an alternative way of coding this short of not using SQL at all and going with SAS code only.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Feb 2019 22:06:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-This-SAS-global-statement-is-not-supported-in-PROC-SQL/m-p/537230#M147703</guid>
      <dc:creator>clmeyer</dc:creator>
      <dc:date>2019-02-20T22:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: This SAS global statement is not supported in PROC SQL. It has been ignored.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-This-SAS-global-statement-is-not-supported-in-PROC-SQL/m-p/537233#M147705</link>
      <description>&lt;P&gt;remove the semicolon before the where clause.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 22:08:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-This-SAS-global-statement-is-not-supported-in-PROC-SQL/m-p/537233#M147705</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-02-20T22:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: This SAS global statement is not supported in PROC SQL. It has been ignored.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-This-SAS-global-statement-is-not-supported-in-PROC-SQL/m-p/537234#M147706</link>
      <description>&lt;P&gt;Are you sure whether your proc sql syntax is correct, i see one error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;select TOTAL_CR_CNT into :init_valueAMPEPCNT from perm.recordsAMPEP3;&amp;nbsp; /*shouldn't be semicolon here*/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The syntax should ideally be&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;

proc sql;

select TOTAL_CR_CNT into :init_valueAMPEPCNT from perm.recordsAMPEP3

where file_id = 'EFTAMPNZ';

quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Feb 2019 22:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-This-SAS-global-statement-is-not-supported-in-PROC-SQL/m-p/537234#M147706</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-20T22:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: This SAS global statement is not supported in PROC SQL. It has been ignored.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-This-SAS-global-statement-is-not-supported-in-PROC-SQL/m-p/537235#M147707</link>
      <description>&lt;P&gt;Oops sorry sir&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&amp;nbsp; for the duplication. I didn;t see your post.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 22:09:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-This-SAS-global-statement-is-not-supported-in-PROC-SQL/m-p/537235#M147707</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-20T22:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: This SAS global statement is not supported in PROC SQL. It has been ignored.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-This-SAS-global-statement-is-not-supported-in-PROC-SQL/m-p/537237#M147709</link>
      <description>&lt;P&gt;Removed the semi-colon and it worked!!! Thanks very much for a quick response.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 22:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-This-SAS-global-statement-is-not-supported-in-PROC-SQL/m-p/537237#M147709</guid>
      <dc:creator>clmeyer</dc:creator>
      <dc:date>2019-02-20T22:19:40Z</dc:date>
    </item>
  </channel>
</rss>

