<?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 Warning and ERROR 22-322: in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Warning-and-ERROR-22-322/m-p/672038#M201896</link>
    <description>&lt;P&gt;Hello, expert,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ROC SQL;&lt;BR /&gt;CREATE TABLE WORK.Number AS&lt;BR /&gt;SELECT int(MAX('Primary ID'n / 7)) FORMAT=BEST12. into:RowN&lt;BR /&gt;FROM WORK.modeltraining_blocked;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro leaveoneout;&lt;BR /&gt;%local i;&lt;BR /&gt;%do i=1 %to 7;&lt;/P&gt;&lt;P&gt;data model_sample;&lt;BR /&gt;set WORK.modeltraining_blocked;&lt;BR /&gt;if ('Primary ID'n &amp;lt; (&amp;amp;i-1)*&amp;amp;RowN) or ('Primary ID'n &amp;gt; (&amp;amp;i+1)*&amp;amp;RowN);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%end;&lt;BR /&gt;%mend;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when this code is running, it shows.&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;WARNING: INTO clause is ignored in the CREATE TABLE statement.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; if ('Primary ID'n &amp;lt; (&amp;amp;i-1)*&amp;amp;RowN&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt; or ('Primary ID'n &amp;gt;&lt;BR /&gt;78 ! (&amp;amp;i+1)*&amp;amp;RowN&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;; &lt;FONT color="#FF0000"&gt;(two red underlie below the ")")&lt;/FONT&gt;&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant,&lt;BR /&gt;a missing value, INPUT, PUT.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;would you please suggest the reason?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jul 2020 09:00:27 GMT</pubDate>
    <dc:creator>Jonison</dc:creator>
    <dc:date>2020-07-24T09:00:27Z</dc:date>
    <item>
      <title>Warning and ERROR 22-322:</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Warning-and-ERROR-22-322/m-p/672038#M201896</link>
      <description>&lt;P&gt;Hello, expert,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ROC SQL;&lt;BR /&gt;CREATE TABLE WORK.Number AS&lt;BR /&gt;SELECT int(MAX('Primary ID'n / 7)) FORMAT=BEST12. into:RowN&lt;BR /&gt;FROM WORK.modeltraining_blocked;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro leaveoneout;&lt;BR /&gt;%local i;&lt;BR /&gt;%do i=1 %to 7;&lt;/P&gt;&lt;P&gt;data model_sample;&lt;BR /&gt;set WORK.modeltraining_blocked;&lt;BR /&gt;if ('Primary ID'n &amp;lt; (&amp;amp;i-1)*&amp;amp;RowN) or ('Primary ID'n &amp;gt; (&amp;amp;i+1)*&amp;amp;RowN);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%end;&lt;BR /&gt;%mend;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when this code is running, it shows.&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;WARNING: INTO clause is ignored in the CREATE TABLE statement.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; if ('Primary ID'n &amp;lt; (&amp;amp;i-1)*&amp;amp;RowN&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt; or ('Primary ID'n &amp;gt;&lt;BR /&gt;78 ! (&amp;amp;i+1)*&amp;amp;RowN&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;; &lt;FONT color="#FF0000"&gt;(two red underlie below the ")")&lt;/FONT&gt;&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant,&lt;BR /&gt;a missing value, INPUT, PUT.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;would you please suggest the reason?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 09:00:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Warning-and-ERROR-22-322/m-p/672038#M201896</guid>
      <dc:creator>Jonison</dc:creator>
      <dc:date>2020-07-24T09:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Warning and ERROR 22-322:</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Warning-and-ERROR-22-322/m-p/672040#M201897</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You cannot create a new table and export columns to macrovariables using&lt;/P&gt;
&lt;P&gt;the same SELECT instruction. Hence the INTO clause is ignored and the macrovariable&lt;/P&gt;
&lt;P&gt;RowN not created.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 09:23:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Warning-and-ERROR-22-322/m-p/672040#M201897</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2020-07-24T09:23:48Z</dc:date>
    </item>
  </channel>
</rss>

