<?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 Statement is not valid or it is used out of proper order. in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Statement-is-not-valid-or-it-is-used-out-of-proper-order/m-p/490084#M6090</link>
    <description>&lt;P&gt;&lt;STRONG&gt;code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;%LET iterations = 5;&lt;BR /&gt;%LET winner = Lance Armstrong;&lt;BR /&gt;DO i = 1 to &amp;amp;iterations;&lt;BR /&gt;TITLE "First: &amp;amp;winner";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;log:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 %LET iterations = 5;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 %LET winner = Lance Armstrong;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 DO i = 1 to &amp;amp;iterations;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;__&lt;/DIV&gt;&lt;DIV class="sasError"&gt;180&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 TITLE "First:" &amp;amp;winner;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: The TITLE statement is ambiguous due to invalid options or unquoted text.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;91&lt;/DIV&gt;</description>
    <pubDate>Mon, 27 Aug 2018 13:45:22 GMT</pubDate>
    <dc:creator>a13</dc:creator>
    <dc:date>2018-08-27T13:45:22Z</dc:date>
    <item>
      <title>Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Statement-is-not-valid-or-it-is-used-out-of-proper-order/m-p/490084#M6090</link>
      <description>&lt;P&gt;&lt;STRONG&gt;code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;%LET iterations = 5;&lt;BR /&gt;%LET winner = Lance Armstrong;&lt;BR /&gt;DO i = 1 to &amp;amp;iterations;&lt;BR /&gt;TITLE "First: &amp;amp;winner";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;log:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 %LET iterations = 5;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 %LET winner = Lance Armstrong;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 DO i = 1 to &amp;amp;iterations;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;__&lt;/DIV&gt;&lt;DIV class="sasError"&gt;180&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 TITLE "First:" &amp;amp;winner;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: The TITLE statement is ambiguous due to invalid options or unquoted text.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;91&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Aug 2018 13:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Statement-is-not-valid-or-it-is-used-out-of-proper-order/m-p/490084#M6090</guid>
      <dc:creator>a13</dc:creator>
      <dc:date>2018-08-27T13:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Statement-is-not-valid-or-it-is-used-out-of-proper-order/m-p/490087#M6091</link>
      <description>&lt;P&gt;macro loops need macro syntax&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%LET iterations = 5;&lt;BR /&gt;%LET winner = Lance Armstrong;&lt;BR /&gt;&lt;STRIKE&gt;DO i = 1 to &amp;amp;iterations;&lt;/STRIKE&gt;&lt;BR /&gt;&lt;STRIKE&gt;TITLE "First: &amp;amp;winner";&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;something like:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;%macro a13;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%DO i = 1 %to &amp;amp;iterations;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TITLE "First: &amp;amp;winner";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%end;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%mend a13;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code doesn't ring the bell in what you want to accomplish&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 13:50:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Statement-is-not-valid-or-it-is-used-out-of-proper-order/m-p/490087#M6091</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-08-27T13:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Statement-is-not-valid-or-it-is-used-out-of-proper-order/m-p/490108#M6092</link>
      <description>&lt;P&gt;%LET iterations = 5;&lt;BR /&gt;%LET winner = Lance Armstrong;&lt;BR /&gt;DO i = 1 to &amp;amp;iterations; &lt;FONT color="#3366ff"&gt;&amp;lt;- This DO belongs in a data step block of code. You may be thinking of a macro loop which would use %DO but still has a syntax error because you show no End or %end.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 14:55:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Statement-is-not-valid-or-it-is-used-out-of-proper-order/m-p/490108#M6092</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-27T14:55:42Z</dc:date>
    </item>
  </channel>
</rss>

