<?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 How can I have both options where and obs in one proc print? in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/How-can-I-have-both-options-where-and-obs-in-one-proc-print/m-p/630572#M8900</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, I am trying to get slipper product in first 50 observation and I am using following syntax.However it showing error message&lt;/P&gt;&lt;DIV class="sasError"&gt;22&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 22-7: Invalid option name (.&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;proc print data=sashelp.shoes (where=(product="Slipper") (obs=50);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help. Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Mon, 09 Mar 2020 03:47:30 GMT</pubDate>
    <dc:creator>helper27</dc:creator>
    <dc:date>2020-03-09T03:47:30Z</dc:date>
    <item>
      <title>How can I have both options where and obs in one proc print?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-can-I-have-both-options-where-and-obs-in-one-proc-print/m-p/630572#M8900</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, I am trying to get slipper product in first 50 observation and I am using following syntax.However it showing error message&lt;/P&gt;&lt;DIV class="sasError"&gt;22&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 22-7: Invalid option name (.&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;proc print data=sashelp.shoes (where=(product="Slipper") (obs=50);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help. Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 03:47:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-can-I-have-both-options-where-and-obs-in-one-proc-print/m-p/630572#M8900</guid>
      <dc:creator>helper27</dc:creator>
      <dc:date>2020-03-09T03:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I have both options where and obs in one proc print?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-can-I-have-both-options-where-and-obs-in-one-proc-print/m-p/630573#M8901</link>
      <description>&lt;P&gt;You have 3 open parenthesis and only 2 closing parenthesis.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=sashelp.shoes (&amp;nbsp;where=(product="Slipper") obs=50 ) ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You don't need extra parentheses around the obs option.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/313488"&gt;@helper27&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi, I am trying to get slipper product in first 50 observation and I am using following syntax.However it showing error message&lt;/P&gt;
&lt;DIV class="sasError"&gt;22&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;ERROR 22-7: Invalid option name (.&lt;/DIV&gt;
&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;proc print data=sashelp.shoes &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;(&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;where=&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/FONT&gt;product="Slipper"&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;)&lt;/FONT&gt; &lt;FONT color="#800080"&gt;(&lt;/FONT&gt;&lt;/STRONG&gt;obs=50&lt;STRONG&gt;&lt;FONT color="#800080"&gt;) &lt;/FONT&gt;&lt;/STRONG&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly help. Thanks in advance!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 04:04:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-can-I-have-both-options-where-and-obs-in-one-proc-print/m-p/630573#M8901</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-09T04:04:38Z</dc:date>
    </item>
  </channel>
</rss>

