<?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: Splitting a query on number of rows in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Splitting-a-query-on-number-of-rows/m-p/849784#M335917</link>
    <description>&lt;P&gt;This doesn't show anything related to a connection to Netezza. The transfer of data from Netezza to SAS is likely the major bottleneck. So you should likely show where in your process are bringing the data to SAS from Netezza.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 05:37:40 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-12-15T05:37:40Z</dc:date>
    <item>
      <title>Splitting a query on number of rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Splitting-a-query-on-number-of-rows/m-p/848814#M335575</link>
      <description>&lt;P&gt;Hello guys! (Sorry for my english, not a native)&lt;BR /&gt;&lt;BR /&gt;I hope someone of you helps me...&lt;BR /&gt;&lt;BR /&gt;I have a query in netezza that's disconnecting me because of time of query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyway to make a looping (or something else) to get first 1 million rows of this query and next 1 million rows and then on?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 21:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Splitting-a-query-on-number-of-rows/m-p/848814#M335575</guid>
      <dc:creator>Holmes</dc:creator>
      <dc:date>2022-12-09T21:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a query on number of rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Splitting-a-query-on-number-of-rows/m-p/848840#M335591</link>
      <description>&lt;P&gt;You should include the code you are currently using for your request. That will help us have a better idea of where bottlenecks may occur.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may find such things work better by creating subsets on the remote DBMS, if possible, and then transferring data to SAS.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 22:57:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Splitting-a-query-on-number-of-rows/m-p/848840#M335591</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-12-09T22:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a query on number of rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Splitting-a-query-on-number-of-rows/m-p/849782#M335915</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;data TargetTable;&lt;BR /&gt;do Id=1 to 10;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc sql;&lt;BR /&gt;Select count(*) as count into :Count from TargetTable&lt;BR /&gt;;Quit;&lt;BR /&gt;%put &amp;amp;count;&lt;/P&gt;
&lt;P&gt;%let subsetsize=3;&lt;BR /&gt;%let tablecount=%sysfunc(ceil(%sysevalf(&amp;amp;count/&amp;amp;subsetsize)));&lt;BR /&gt;%put &amp;amp;tablecount;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;%macro createtables;&lt;BR /&gt;%let fo=1;&lt;BR /&gt;%do i=1 %to &amp;amp;tablecount;&lt;BR /&gt;data newtable&amp;amp;i;&lt;BR /&gt;set TargetTable (obs = %sysevalf(&amp;amp;subsetsize+&amp;amp;fo-1) firstobs = &amp;amp;fo) ;&lt;BR /&gt;run;&lt;BR /&gt;%let fo=%sysevalf(&amp;amp;subsetsize+&amp;amp;fo);&lt;BR /&gt;%end;&lt;BR /&gt;%mend;&lt;/P&gt;
&lt;P&gt;%createtables;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;TABLE width="300"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="75"&gt;NewTable1&lt;/TD&gt;
&lt;TD width="75"&gt;NewTable2&lt;/TD&gt;
&lt;TD width="75"&gt;NewTable3&lt;/TD&gt;
&lt;TD width="75"&gt;NewTable4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Id&lt;/TD&gt;
&lt;TD&gt;Id&lt;/TD&gt;
&lt;TD&gt;Id&lt;/TD&gt;
&lt;TD&gt;Id&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;4&lt;/TD&gt;
&lt;TD&gt;7&lt;/TD&gt;
&lt;TD&gt;10&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;TD&gt;5&lt;/TD&gt;
&lt;TD&gt;8&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;6&lt;/TD&gt;
&lt;TD&gt;9&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 04:16:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Splitting-a-query-on-number-of-rows/m-p/849782#M335915</guid>
      <dc:creator>SK_11</dc:creator>
      <dc:date>2022-12-15T04:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a query on number of rows</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Splitting-a-query-on-number-of-rows/m-p/849784#M335917</link>
      <description>&lt;P&gt;This doesn't show anything related to a connection to Netezza. The transfer of data from Netezza to SAS is likely the major bottleneck. So you should likely show where in your process are bringing the data to SAS from Netezza.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 05:37:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Splitting-a-query-on-number-of-rows/m-p/849784#M335917</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-12-15T05:37:40Z</dc:date>
    </item>
  </channel>
</rss>

