<?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: Is Inobs = xx the quickest way to see xx number of rows? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-Inobs-xx-the-quickest-way-to-see-xx-number-of-rows/m-p/451759#M113948</link>
    <description>&lt;P&gt;As to widely varying times for 10 obs:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Is the program using a multi-user system, or a client-server architecture?&amp;nbsp; These environments could generate highly variable competition for resources.&lt;/LI&gt;
&lt;LI&gt;Is your source data set a data set FILE, or a data set VIEW?&amp;nbsp; If it's the latter, there may be a lot of activity needed to generate 10 obs, as in:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data table /view=table;
  do until(last.ticker);
    set quotes;
    by ticker;
    total_ask_shares=sum(total_ask_shares,ask_shares);
    total_bid_shares=sum(total_bid_shares,bid_shares);
  end;
run;
proc sql inobs=10;
  select * from table;
quit&lt;/CODE&gt;&lt;/PRE&gt;
If each stock ticker has 10,000 records in the quotes data set, then the first 10 obs in TABLE requires then first 100,000 observations in QUOTES.&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Fri, 06 Apr 2018 04:31:18 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2018-04-06T04:31:18Z</dc:date>
    <item>
      <title>Is Inobs = xx the quickest way to see xx number of rows?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-Inobs-xx-the-quickest-way-to-see-xx-number-of-rows/m-p/451748#M113944</link>
      <description>&lt;P&gt;I usually like to view a quick 5 to 10 rows of my table so I can actually see the column names, and also get a feel of what sample data looks like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I always tend to use the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql inobs=10;
select * from table;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is this the best way to view a quick sample of my data?&amp;nbsp;From my experience, sometimes inobs=10 can generate a table really quick, and other times, it takes a long time to run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe I don't quite understand what an "inobs" does, but is this the best way to get a very fast look at my data?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 02:18:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-Inobs-xx-the-quickest-way-to-see-xx-number-of-rows/m-p/451748#M113944</guid>
      <dc:creator>mrdlau</dc:creator>
      <dc:date>2018-04-06T02:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is Inobs = xx the quickest way to see xx number of rows?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-Inobs-xx-the-quickest-way-to-see-xx-number-of-rows/m-p/451751#M113946</link>
      <description>&lt;P&gt;It should be fine, I use the equivalent, data step version.&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=have (obs=10) ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It's documented here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=sqlproc&amp;amp;docsetTarget=n0a693shdq473qn1svlwshfci9rg.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=sqlproc&amp;amp;docsetTarget=n0a693shdq473qn1svlwshfci9rg.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 02:30:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-Inobs-xx-the-quickest-way-to-see-xx-number-of-rows/m-p/451751#M113946</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-06T02:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is Inobs = xx the quickest way to see xx number of rows?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-Inobs-xx-the-quickest-way-to-see-xx-number-of-rows/m-p/451759#M113948</link>
      <description>&lt;P&gt;As to widely varying times for 10 obs:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Is the program using a multi-user system, or a client-server architecture?&amp;nbsp; These environments could generate highly variable competition for resources.&lt;/LI&gt;
&lt;LI&gt;Is your source data set a data set FILE, or a data set VIEW?&amp;nbsp; If it's the latter, there may be a lot of activity needed to generate 10 obs, as in:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data table /view=table;
  do until(last.ticker);
    set quotes;
    by ticker;
    total_ask_shares=sum(total_ask_shares,ask_shares);
    total_bid_shares=sum(total_bid_shares,bid_shares);
  end;
run;
proc sql inobs=10;
  select * from table;
quit&lt;/CODE&gt;&lt;/PRE&gt;
If each stock ticker has 10,000 records in the quotes data set, then the first 10 obs in TABLE requires then first 100,000 observations in QUOTES.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 06 Apr 2018 04:31:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-Inobs-xx-the-quickest-way-to-see-xx-number-of-rows/m-p/451759#M113948</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2018-04-06T04:31:18Z</dc:date>
    </item>
  </channel>
</rss>

