<?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 to get the acct_id of the 1,000,000th record from a table? in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-get-the-acct-id-of-the-1-000-000th-record-from-a-table/m-p/6713#M691</link>
    <description>We get the data from ODIN (oracle database) using proc sql.  It got 20M records and indexed by 'acct_id'.  I need to pull all the records and I'm forced  to not to query them all with a single query for some reasons (memory limitation so on)  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
What's the best way to get all the data with, let's say, 20 queries.   Ideally, I want to set up a macro program and call it 20 times.  I thought if I know the acct_ids for the 1Mth, 2Mth,..., and 19Mth record, then I can condition it on them.  Now, the problem is how do I even get those acct_ids using queries?&lt;BR /&gt;
&lt;BR /&gt;
I was also trying to use 'rownum' and the following conditon does not work here:&lt;BR /&gt;
//where rownum between 2 and 10//&lt;BR /&gt;
&lt;BR /&gt;
Is there any standard solution for big queries?  &lt;BR /&gt;
&lt;BR /&gt;
Thanks.&lt;BR /&gt;
&lt;BR /&gt;
-Nilan</description>
    <pubDate>Fri, 01 Feb 2008 20:59:03 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-02-01T20:59:03Z</dc:date>
    <item>
      <title>How to get the acct_id of the 1,000,000th record from a table?</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-get-the-acct-id-of-the-1-000-000th-record-from-a-table/m-p/6713#M691</link>
      <description>We get the data from ODIN (oracle database) using proc sql.  It got 20M records and indexed by 'acct_id'.  I need to pull all the records and I'm forced  to not to query them all with a single query for some reasons (memory limitation so on)  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
What's the best way to get all the data with, let's say, 20 queries.   Ideally, I want to set up a macro program and call it 20 times.  I thought if I know the acct_ids for the 1Mth, 2Mth,..., and 19Mth record, then I can condition it on them.  Now, the problem is how do I even get those acct_ids using queries?&lt;BR /&gt;
&lt;BR /&gt;
I was also trying to use 'rownum' and the following conditon does not work here:&lt;BR /&gt;
//where rownum between 2 and 10//&lt;BR /&gt;
&lt;BR /&gt;
Is there any standard solution for big queries?  &lt;BR /&gt;
&lt;BR /&gt;
Thanks.&lt;BR /&gt;
&lt;BR /&gt;
-Nilan</description>
      <pubDate>Fri, 01 Feb 2008 20:59:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-get-the-acct-id-of-the-1-000-000th-record-from-a-table/m-p/6713#M691</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-02-01T20:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the acct_id of the 1,000,000th record from a table?</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-get-the-acct-id-of-the-1-000-000th-record-from-a-table/m-p/6714#M692</link>
      <description>Hi:&lt;BR /&gt;
  You may want to consult with Tech Support. This is a big enough file that you need a data-specific and database-specific solution. And also, once you create your various BIG files, there may be efficiency considerations to take into account when you are doing subsequent processing or analysis with SAS.&lt;BR /&gt;
 &lt;BR /&gt;
  To contact Tech Support, go to &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt; and in the left-hand navigation pane, click on the link entitled "Submit a Problem".&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 01 Feb 2008 22:29:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-get-the-acct-id-of-the-1-000-000th-record-from-a-table/m-p/6714#M692</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-02-01T22:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the acct_id of the 1,000,000th record from a table?</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-get-the-acct-id-of-the-1-000-000th-record-from-a-table/m-p/6715#M693</link>
      <description>Hi Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
I'll do that. &lt;BR /&gt;
&lt;BR /&gt;
Thanks for the direction. &lt;BR /&gt;
&lt;BR /&gt;
-Nilan</description>
      <pubDate>Mon, 04 Feb 2008 14:18:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-get-the-acct-id-of-the-1-000-000th-record-from-a-table/m-p/6715#M693</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-02-04T14:18:27Z</dc:date>
    </item>
  </channel>
</rss>

