<?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 ERROR 180-322: Statement is not valid or it is used out of proper order. in SAS Customer Intelligence</title>
    <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/555846#M1165</link>
    <description>&lt;P&gt;I am having problem to run SAS codes using SAS studio (university). The weird thing is that when I open the same file and run using SAS program in the computer at the University, it works. So basically some files open some not. The example that I am using:&lt;/P&gt;&lt;DIV&gt;&lt;FONT&gt;data Q1;&lt;BR /&gt;input day type $ lightReading;&lt;BR /&gt;datalines;&lt;BR /&gt;1&amp;nbsp;M&amp;nbsp;4&lt;BR /&gt;1&amp;nbsp;A&amp;nbsp;4.8&lt;BR /&gt;1&amp;nbsp;K&amp;nbsp;5&lt;BR /&gt;1&amp;nbsp;L&amp;nbsp;4.6&lt;BR /&gt;2&amp;nbsp;M&amp;nbsp;4.8&lt;BR /&gt;2&amp;nbsp;A&amp;nbsp;5&lt;BR /&gt;2&amp;nbsp;K&amp;nbsp;5.2&lt;BR /&gt;2&amp;nbsp;L&amp;nbsp;4.6&lt;BR /&gt;3&amp;nbsp;M&amp;nbsp;4&lt;BR /&gt;3&amp;nbsp;A&amp;nbsp;4.8&lt;BR /&gt;3&amp;nbsp;K&amp;nbsp;5.6&lt;BR /&gt;3&amp;nbsp;L&amp;nbsp;5&lt;BR /&gt;;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;*proc glm data=Q1;&lt;BR /&gt;class day type;&lt;BR /&gt;model lightreading= day type;&lt;BR /&gt;run;&lt;BR /&gt;proc anova data=Q1;&lt;BR /&gt;class day type;&lt;BR /&gt;model lightreading= day type;&lt;BR /&gt;run;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;***The error that gives me is that:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: red; font-family: Consolas,Courier,'Courier New'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2019 05:43:40 GMT</pubDate>
    <dc:creator>LaLa1</dc:creator>
    <dc:date>2019-05-03T05:43:40Z</dc:date>
    <item>
      <title>ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/555846#M1165</link>
      <description>&lt;P&gt;I am having problem to run SAS codes using SAS studio (university). The weird thing is that when I open the same file and run using SAS program in the computer at the University, it works. So basically some files open some not. The example that I am using:&lt;/P&gt;&lt;DIV&gt;&lt;FONT&gt;data Q1;&lt;BR /&gt;input day type $ lightReading;&lt;BR /&gt;datalines;&lt;BR /&gt;1&amp;nbsp;M&amp;nbsp;4&lt;BR /&gt;1&amp;nbsp;A&amp;nbsp;4.8&lt;BR /&gt;1&amp;nbsp;K&amp;nbsp;5&lt;BR /&gt;1&amp;nbsp;L&amp;nbsp;4.6&lt;BR /&gt;2&amp;nbsp;M&amp;nbsp;4.8&lt;BR /&gt;2&amp;nbsp;A&amp;nbsp;5&lt;BR /&gt;2&amp;nbsp;K&amp;nbsp;5.2&lt;BR /&gt;2&amp;nbsp;L&amp;nbsp;4.6&lt;BR /&gt;3&amp;nbsp;M&amp;nbsp;4&lt;BR /&gt;3&amp;nbsp;A&amp;nbsp;4.8&lt;BR /&gt;3&amp;nbsp;K&amp;nbsp;5.6&lt;BR /&gt;3&amp;nbsp;L&amp;nbsp;5&lt;BR /&gt;;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;*proc glm data=Q1;&lt;BR /&gt;class day type;&lt;BR /&gt;model lightreading= day type;&lt;BR /&gt;run;&lt;BR /&gt;proc anova data=Q1;&lt;BR /&gt;class day type;&lt;BR /&gt;model lightreading= day type;&lt;BR /&gt;run;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;***The error that gives me is that:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: red; font-family: Consolas,Courier,'Courier New'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 05:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/555846#M1165</guid>
      <dc:creator>LaLa1</dc:creator>
      <dc:date>2019-05-03T05:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/555851#M1166</link>
      <description>&lt;P&gt;I don't think that the code won't give any errors when executed in different environments, because the * in the line&lt;/P&gt;
&lt;PRE&gt;*proc glm data=Q1;&lt;/PRE&gt;
&lt;P&gt;starts a comment that ends at the first semicolon. So the compiler sees a class-statement outside any procedure allowing such statement and issues a "statement is not valid ..." error. Removing the * should solve the problem. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For future posts, please use the running man icon to post code and for debugging programs it is almost always necessary to see the full log, not just the error message.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 06:41:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/555851#M1166</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-05-03T06:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/555944#M1167</link>
      <description>&lt;P&gt;Verify that your input file is read in correctly. Different OS have different characters that denote end of the line when reading in data. SAS UE is using a Unix system whereas your work/school is likely Windows.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So besides the * and commenting out the PROC GLM statement, double check that your data is being imported correctly in each system. There's nothing in your code that should run differently otherwise.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 14:40:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/555944#M1167</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-03T14:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 180-322: Statement is not valid or it is used out of proper order.</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/556107#M1168</link>
      <description>&lt;P&gt;The code with"*" was only an example, in order to run I remove the * and it doesn't work.&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 21:37:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/556107#M1168</guid>
      <dc:creator>LaLa1</dc:creator>
      <dc:date>2019-05-03T21:37:14Z</dc:date>
    </item>
  </channel>
</rss>

