<?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 when using keep command with OBS command in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Error-when-using-keep-command-with-OBS-command/m-p/787111#M32261</link>
    <description>&lt;P&gt;Hello I am getting an error with this statement and I'm not sure what I am doing wrong:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc print data=dmbi.test (OBS=300);
(keep="Time"n "Provider Name"n "Class Name"n);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;71 proc print data=dmbi.test (OBS=300); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;72 (keep="Time"n "Provider Name"n "Class Name"n); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;180 ERROR 180-322: Statement is not valid or it is used out of proper order. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;73 run;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Dec 2021 14:50:39 GMT</pubDate>
    <dc:creator>Taker123</dc:creator>
    <dc:date>2021-12-22T14:50:39Z</dc:date>
    <item>
      <title>Error when using keep command with OBS command</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-when-using-keep-command-with-OBS-command/m-p/787111#M32261</link>
      <description>&lt;P&gt;Hello I am getting an error with this statement and I'm not sure what I am doing wrong:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc print data=dmbi.test (OBS=300);
(keep="Time"n "Provider Name"n "Class Name"n);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;71 proc print data=dmbi.test (OBS=300); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;72 (keep="Time"n "Provider Name"n "Class Name"n); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;180 ERROR 180-322: Statement is not valid or it is used out of proper order. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;73 run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 14:50:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-when-using-keep-command-with-OBS-command/m-p/787111#M32261</guid>
      <dc:creator>Taker123</dc:creator>
      <dc:date>2021-12-22T14:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using keep command with OBS command</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-when-using-keep-command-with-OBS-command/m-p/787114#M32262</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=dmbi.test (OBS=300 keep="Time"n "Provider Name"n "Class Name"n);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can only have one set of parenthesis which enclose ALL data set options.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 15:07:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-when-using-keep-command-with-OBS-command/m-p/787114#M32262</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-12-22T15:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using keep command with OBS command</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Error-when-using-keep-command-with-OBS-command/m-p/787118#M32263</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=dmbi.test (OBS=300); /* this semicolon ends the PROC PRINT statement */
(keep="Time"n "Provider Name"n "Class Name"n);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;All dataset options need to be in one pair of brackets:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=dmbi.test (
  OBS=300
  keep="Time"n "Provider Name"n "Class Name"n
);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Dec 2021 15:16:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Error-when-using-keep-command-with-OBS-command/m-p/787118#M32263</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-12-22T15:16:54Z</dc:date>
    </item>
  </channel>
</rss>

