<?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 is not valid or it is used out of proper order' when executing SAS PROC statements in Z/OS batch mode in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/166274#M300692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't look like anything is wrong with your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That sort of general error message is SAS's way of saying that something is wrong but it can't tell you what the problem is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you checked for operating system quirks?&amp;nbsp; For example, if you look to the right on each line of the program, has the system added a line number in columns 73-80?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Feb 2014 15:55:45 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2014-02-07T15:55:45Z</dc:date>
    <item>
      <title>'ERROR 180-322: Statement is not valid or it is used out of proper order' when executing SAS PROC statements in Z/OS batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/166273#M300691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to SAS, I am learning SAS for a new requirement in the project.Our shop uses SAS 9.2 TS2M3 for ZOS. I am facing this error when I run SAS programs in mainframe ZOS environment in batch mode with PROC statements. This same piece of program runs good when I execute through TSO SAS facility. Kindly suggest what I am missing here or way to trace the PROC to find the root issue. Below is the snippet of my batch code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//STEP1&amp;nbsp;&amp;nbsp; EXEC SAS&lt;/P&gt;&lt;P&gt;//SYSIN&amp;nbsp;&amp;nbsp;&amp;nbsp; DD&amp;nbsp; *&lt;/P&gt;&lt;P&gt;DATA&amp;nbsp; SAS1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X=1;&lt;/P&gt;&lt;P&gt;RUN; &lt;/P&gt;&lt;P&gt;PROC PRINT DATA=SAS1;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SASLOG says below error in PROC PRINT statement,it doesn't say any specific problem.&lt;/P&gt;&lt;P&gt;'ERROR 180-322: Statement is not valid or it is used out of proper order.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 06:06:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/166273#M300691</guid>
      <dc:creator>ajai</dc:creator>
      <dc:date>2014-02-07T06:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: 'ERROR 180-322: Statement is not valid or it is used out of proper order' when executing SAS PROC statements in Z/OS batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/166274#M300692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't look like anything is wrong with your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That sort of general error message is SAS's way of saying that something is wrong but it can't tell you what the problem is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you checked for operating system quirks?&amp;nbsp; For example, if you look to the right on each line of the program, has the system added a line number in columns 73-80?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 15:55:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-180-322-Statement-is-not-valid-or-it-is-used-out-of-proper/m-p/166274#M300692</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-02-07T15:55:45Z</dc:date>
    </item>
  </channel>
</rss>

