<?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 73-322: Expecting an OUT. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-73-322-Expecting-an-OUT/m-p/330853#M62650</link>
    <description>&lt;P&gt;I suspect that the error message comes from this combination:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The options on the OUTPUT statement (nocol, etc.) suppress all the printed output.&lt;/LI&gt;
&lt;LI&gt;Because of that, the OUT= option is required.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;It's true that the OUTPUT statement is added, but evidently PROC FREQ isn't smart enough to figure out that the combination is OK (no printed output, but using an OUTPUT statement).&amp;nbsp; If&amp;nbsp;you wanted to add an OUTPUT statement to save additional statistics, that ought to work.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2017 14:36:28 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2017-02-08T14:36:28Z</dc:date>
    <item>
      <title>ERROR 73-322: Expecting an OUT.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-73-322-Expecting-an-OUT/m-p/330825#M62638</link>
      <description>&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;DEAR SAS USERS,&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;SORT&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;DATA&lt;/SPAN&gt;=randrandomsampleCLAIMS2;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;BY&lt;/SPAN&gt; YEAR;&lt;/P&gt;&lt;P class="p2"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;Proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;freq&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;=randrandomsampleCLAIMS2;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;BY&lt;/SPAN&gt; YEAR;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;tables&lt;/SPAN&gt;&amp;nbsp;claims*QUARTER /&lt;SPAN class="s2"&gt;nocol&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;nopercent&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;norow&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;output&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;OUT&lt;/SPAN&gt;=claimtypes&amp;nbsp;&lt;SPAN class="s2"&gt;N&lt;/SPAN&gt;=freq;&lt;/P&gt;&lt;P class="p2"&gt;&lt;STRONG&gt;Run&lt;/STRONG&gt;&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p3"&gt;I get "ERROR 73-322: Expecting an OUT." for the code above. There is an OUT in there. What's my error?&lt;/P&gt;&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p3"&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 13:21:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-73-322-Expecting-an-OUT/m-p/330825#M62638</guid>
      <dc:creator>GKati</dc:creator>
      <dc:date>2017-02-08T13:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 73-322: Expecting an OUT.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-73-322-Expecting-an-OUT/m-p/330842#M62644</link>
      <description>&lt;P&gt;The syntax for creating an output data set in PROC FREQ is a little different:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;Proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;freq&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;=randrandomsampleCLAIMS2;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;BY&lt;/SPAN&gt; YEAR;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;tables&lt;/SPAN&gt;&amp;nbsp;claims*QUARTER / &lt;SPAN class="s2"&gt;noprint out=claimtypes&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;STRONG&gt;Run&lt;/STRONG&gt;&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s3"&gt;It's easy enough to rename the variables if you want to.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 13:58:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-73-322-Expecting-an-OUT/m-p/330842#M62644</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-02-08T13:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 73-322: Expecting an OUT.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-73-322-Expecting-an-OUT/m-p/330844#M62645</link>
      <description>&lt;P&gt;The syntax is different than proc means, but you're pretty close. The rest of the syntax are options but you don't get to rename the variable. What happens with the following&amp;nbsp;code:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Proc freq data=randrandomsampleCLAIMS2;&lt;BR /&gt;BY YEAR;&lt;BR /&gt;tables claims*QUARTER /nocol nopercent norow;&lt;BR /&gt;output OUT=claimtypes N;&lt;BR /&gt;Run;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 14:08:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-73-322-Expecting-an-OUT/m-p/330844#M62645</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-02-08T14:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 73-322: Expecting an OUT.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-73-322-Expecting-an-OUT/m-p/330849#M62648</link>
      <description>&lt;P&gt;Thanks for the encouragement :-)) For some reason, this code didn't produce any output dataset. why is that? I also tried Astounding's and that produced a dataset. the difference between the two codes in minimal.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 14:24:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-73-322-Expecting-an-OUT/m-p/330849#M62648</guid>
      <dc:creator>GKati</dc:creator>
      <dc:date>2017-02-08T14:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 73-322: Expecting an OUT.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-73-322-Expecting-an-OUT/m-p/330851#M62649</link>
      <description>&lt;P&gt;Without a log I can't say. According to SAS docs the code is correct.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 14:26:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-73-322-Expecting-an-OUT/m-p/330851#M62649</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-02-08T14:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 73-322: Expecting an OUT.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-73-322-Expecting-an-OUT/m-p/330853#M62650</link>
      <description>&lt;P&gt;I suspect that the error message comes from this combination:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The options on the OUTPUT statement (nocol, etc.) suppress all the printed output.&lt;/LI&gt;
&lt;LI&gt;Because of that, the OUT= option is required.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;It's true that the OUTPUT statement is added, but evidently PROC FREQ isn't smart enough to figure out that the combination is OK (no printed output, but using an OUTPUT statement).&amp;nbsp; If&amp;nbsp;you wanted to add an OUTPUT statement to save additional statistics, that ought to work.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 14:36:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-73-322-Expecting-an-OUT/m-p/330853#M62650</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-02-08T14:36:28Z</dc:date>
    </item>
  </channel>
</rss>

