<?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: Error 180-322 Statement not valid or used out of proper order in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-180-322-Statement-not-valid-or-used-out-of-proper-order/m-p/386849#M92706</link>
    <description>You are welcome. ; is basically known as a null statement. It's very interesting statement and has some relevance as it is an executable statement. In some instances, you can even use that for conditional processing however that is out of scope for this thread. Have fun!</description>
    <pubDate>Thu, 10 Aug 2017 00:50:18 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2017-08-10T00:50:18Z</dc:date>
    <item>
      <title>Error 180-322 Statement not valid or used out of proper order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-180-322-Statement-not-valid-or-used-out-of-proper-order/m-p/386816#M92699</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am brand new to SAS and am learning from the book Learning SAS from example. Problem 5.3, there are answers, and I have copied them, with the only difference that I am using the SAS University Edition on Vbox, a UNIX based system, not windows. I am extremely frustrated because I am getting the 180-322 error after the datalines and everthing seems just fine to me, after lots and lots of looking at it. Maybe someone can let me know what the problem is? Thanks!&lt;/P&gt;&lt;P&gt;Below is the code:&lt;/P&gt;&lt;P&gt;--------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Libname Myfold '/folders/myfolders/sasuser.v94/Perm/MyFold' ; &lt;BR /&gt;&lt;BR /&gt;Data myfold.colors ; &lt;BR /&gt;	input Color : $1. @@ ; &lt;BR /&gt;datalines ;&lt;BR /&gt;R R B G Y Y  . . B G R B G Y P O O V V B ;&lt;BR /&gt;&lt;BR /&gt;	&lt;BR /&gt;proc format ;&lt;BR /&gt;	value $color 'R' , 'B' , 'G' = 'Group1'&lt;BR /&gt;	              'Y' , 'O' = 'Group2'&lt;BR /&gt;	              '  ' = 'Not Given'&lt;BR /&gt;	              Other = 'Group3' ;&lt;BR /&gt;run ; &lt;BR /&gt;&lt;BR /&gt;Title "Colors Frequencies (Grouped)" ; &lt;BR /&gt;proc freq data=myfold.colors ; &lt;BR /&gt;	Tables Color / nocum missing ; &lt;BR /&gt;	format color $color. ; &lt;BR /&gt;run ;  &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 21:33:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-180-322-Statement-not-valid-or-used-out-of-proper-order/m-p/386816#M92699</guid>
      <dc:creator>ManitobaMoose</dc:creator>
      <dc:date>2017-08-09T21:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error 180-322 Statement not valid or used out of proper order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-180-322-Statement-not-valid-or-used-out-of-proper-order/m-p/386818#M92700</link>
      <description>&lt;P&gt;&lt;BR /&gt;Data colors ;&lt;BR /&gt;input Color : $1. @@ ;&lt;BR /&gt;&lt;STRONG&gt;datalines ;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;R R B G Y Y . . B G R B G Y P O O V V B&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;;/*notice here*/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what's the problem&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 21:39:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-180-322-Statement-not-valid-or-used-out-of-proper-order/m-p/386818#M92700</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2017-08-09T21:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error 180-322 Statement not valid or used out of proper order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-180-322-Statement-not-valid-or-used-out-of-proper-order/m-p/386819#M92701</link>
      <description>&lt;P&gt;Oh right, just the placement of the ; should have been after the last dataline in the next line&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 21:37:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-180-322-Statement-not-valid-or-used-out-of-proper-order/m-p/386819#M92701</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2017-08-09T21:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error 180-322 Statement not valid or used out of proper order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-180-322-Statement-not-valid-or-used-out-of-proper-order/m-p/386847#M92705</link>
      <description>&lt;P&gt;Great! Thanks. I didn;t know the semicolon HAD to be on the next line. I thought that was optional.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 00:44:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-180-322-Statement-not-valid-or-used-out-of-proper-order/m-p/386847#M92705</guid>
      <dc:creator>ManitobaMoose</dc:creator>
      <dc:date>2017-08-10T00:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error 180-322 Statement not valid or used out of proper order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-180-322-Statement-not-valid-or-used-out-of-proper-order/m-p/386849#M92706</link>
      <description>You are welcome. ; is basically known as a null statement. It's very interesting statement and has some relevance as it is an executable statement. In some instances, you can even use that for conditional processing however that is out of scope for this thread. Have fun!</description>
      <pubDate>Thu, 10 Aug 2017 00:50:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-180-322-Statement-not-valid-or-used-out-of-proper-order/m-p/386849#M92706</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2017-08-10T00:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error 180-322 Statement not valid or used out of proper order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-180-322-Statement-not-valid-or-used-out-of-proper-order/m-p/386850#M92707</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/158207"&gt;@ManitobaMoose&lt;/a&gt;&amp;nbsp;I think it's pretty simple. Mark the question as answered.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 00:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-180-322-Statement-not-valid-or-used-out-of-proper-order/m-p/386850#M92707</guid>
      <dc:creator>MarkWik</dc:creator>
      <dc:date>2017-08-10T00:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error 180-322 Statement not valid or used out of proper order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-180-322-Statement-not-valid-or-used-out-of-proper-order/m-p/386873#M92711</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/158207"&gt;@ManitobaMoose&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Great! Thanks. I didn;t know the semicolon HAD to be on the next line. I thought that was optional.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When using datalines; or cards;, a single semicolon in a line will be recognized as the end of the datalines section (and, by defintion, the end of the data step). If something else comes before that semicolon in that line, it is treated as the first statement fo the next step. Since your line does not contain valid SAS code, it causes the error.&lt;/P&gt;
&lt;P&gt;If you need to have semicolons in your datalines, use the datalines4; statement. Then 4 successive semicolons are needed to end the datalines section.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 06:40:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-180-322-Statement-not-valid-or-used-out-of-proper-order/m-p/386873#M92711</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-08-10T06:40:57Z</dc:date>
    </item>
  </channel>
</rss>

