<?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: Difference between in inobs and outobs in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-in-inobs-and-outobs/m-p/419951#M103301</link>
    <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/154975"&gt;@priyankachauhan&lt;/a&gt;,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;&amp;nbsp;is very kind enough to explain how it works. I am sure, you may or may not understand a lot of concepts if you are a beginner. I found it very hard when i was a beginner 5 years ago. I suggest you to get a copy of this amazing book which has everything that you want and more-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="product-img-main"&gt;&lt;IMG src="https://www.sas.com/storefront/aux/en/spprocsql/62432_thumbnailcover.jpg" border="0" alt="PROC SQL: Beyond the Basics Using SAS®, Second Edition" title="PROC SQL: Beyond the Basics Using SAS®, Second Edition" /&gt;&lt;/DIV&gt;&lt;DIV class="prod-detail"&gt;&lt;DIV class="prod-title"&gt;PROC SQL: Beyond the Basics Using SAS®, Second Edition&lt;DIV class="author"&gt;&lt;A href="http://support.sas.com/publishing/authors/lafler.html" target="_blank"&gt;Kirk Paul Lafler&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="instock"&gt;In Stock&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="publisher"&gt;Publisher: SAS Institute&lt;/DIV&gt;&lt;DIV class="copyright"&gt;Copyright Date: October 2013&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 10 Dec 2017 18:50:26 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2017-12-10T18:50:26Z</dc:date>
    <item>
      <title>Difference between in inobs and outobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-in-inobs-and-outobs/m-p/419910#M103290</link>
      <description>&lt;P&gt;inobs and outobs showing the same no. of rows in the table. so what is the difference between them?&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2017 12:24:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-in-inobs-and-outobs/m-p/419910#M103290</guid>
      <dc:creator>priyankachauhan</dc:creator>
      <dc:date>2017-12-10T12:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between in inobs and outobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-in-inobs-and-outobs/m-p/419914#M103291</link>
      <description>&lt;P&gt;in some cases you may want to split observations - e.g write out per date in a range of dates.&lt;/P&gt;
&lt;P&gt;in other case you may want to filter your input and select output according to some rules.&lt;/P&gt;
&lt;P&gt;in both cases inobs will differ from outobs.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2017 12:59:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-in-inobs-and-outobs/m-p/419914#M103291</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-12-10T12:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between in inobs and outobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-in-inobs-and-outobs/m-p/419951#M103301</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/154975"&gt;@priyankachauhan&lt;/a&gt;,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;&amp;nbsp;is very kind enough to explain how it works. I am sure, you may or may not understand a lot of concepts if you are a beginner. I found it very hard when i was a beginner 5 years ago. I suggest you to get a copy of this amazing book which has everything that you want and more-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="product-img-main"&gt;&lt;IMG src="https://www.sas.com/storefront/aux/en/spprocsql/62432_thumbnailcover.jpg" border="0" alt="PROC SQL: Beyond the Basics Using SAS®, Second Edition" title="PROC SQL: Beyond the Basics Using SAS®, Second Edition" /&gt;&lt;/DIV&gt;&lt;DIV class="prod-detail"&gt;&lt;DIV class="prod-title"&gt;PROC SQL: Beyond the Basics Using SAS®, Second Edition&lt;DIV class="author"&gt;&lt;A href="http://support.sas.com/publishing/authors/lafler.html" target="_blank"&gt;Kirk Paul Lafler&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="instock"&gt;In Stock&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="publisher"&gt;Publisher: SAS Institute&lt;/DIV&gt;&lt;DIV class="copyright"&gt;Copyright Date: October 2013&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 10 Dec 2017 18:50:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-in-inobs-and-outobs/m-p/419951#M103301</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2017-12-10T18:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between in inobs and outobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-in-inobs-and-outobs/m-p/419955#M103302</link>
      <description>&lt;P&gt;In the simplest cases they are the same. But as soon as you complicate things they are not.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They do what it sounds like it does, one controls how many records are read, InOBS) and one controls how many records are output. Since the number of records read obviously affects the outcome they are very different.&amp;nbsp;&lt;BR /&gt;Here's an example of the exact same code and INOBS=2 and OUTOBS=2 in each run. Check the output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title 'OutObs demo';
proc sql outobs=2;
select age, count(*)
from sashelp.class
group by age
order by age desc;
;
quit;


title 'InObs demo';
proc sql inobs=5;
select age, count(*)
from sashelp.class
group by age
order by age desc;
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Results:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2017-12-10 at 12.02.47 PM.png" style="width: 555px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17123i66E21DBA58BE021C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2017-12-10 at 12.02.47 PM.png" alt="Screen Shot 2017-12-10 at 12.02.47 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;SECTION data-name="SQL" data-sec-type="proc"&gt;
&lt;DIV id="IDX" class="systitleandfootercontainer"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/SECTION&gt;
&lt;SECTION data-name="SQL" data-sec-type="proc"&gt;
&lt;ARTICLE&gt;&lt;/ARTICLE&gt;
&lt;/SECTION&gt;</description>
      <pubDate>Sun, 10 Dec 2017 19:03:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-in-inobs-and-outobs/m-p/419955#M103302</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-12-10T19:03:38Z</dc:date>
    </item>
  </channel>
</rss>

