<?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: Create subsets from huge table (3,632,135 rows) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Create-subsets-from-huge-table-3-632-135-rows/m-p/374016#M62376</link>
    <description>&lt;P&gt;If you have lots of memory, all you have to do is to select the Subset By check box, and to select id&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="subset.PNG" style="width: 475px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31879i3A08A01DDC0E9729/image-size/large?v=v2&amp;amp;px=999" role="button" title="subset.PNG" alt="subset.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Another method would be to save the subsets as they are created.&amp;nbsp; &amp;nbsp;This will allow the method to run without having to use up a lot of memory.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
For( i = 0, i &amp;lt;= 1104, i++,
	dt &amp;lt;&amp;lt; select where( :ID == i );
	dt1 = Data Table( "2017_18Year (1)" ) &amp;lt;&amp;lt; Subset(
		Output Table( "ID = " || Char( i ) ),
		Selected Rows( 1 ),
		Selected columns( 0 )
	);
	Close( dt1, save( "path to the folder to save to" || "ID = " || Char( i ) || ".jmp" ) );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 02 Apr 2021 21:45:01 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-04-02T21:45:01Z</dc:date>
    <item>
      <title>Create subsets from huge table (3,632,135 rows)</title>
      <link>https://community.jmp.com/t5/Discussions/Create-subsets-from-huge-table-3-632-135-rows/m-p/374012#M62375</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a big dataset with more than 3 million rows. The table contains 1105 ID (0-1104). Each ID has 3287 rows. So, I want to create 3287 subsets, and each subset contains 1105 ID lines.&lt;/P&gt;&lt;P&gt;Could you please help me to find the solution?&lt;/P&gt;&lt;P&gt;I attached the part of the dataset.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:28:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-subsets-from-huge-table-3-632-135-rows/m-p/374012#M62375</guid>
      <dc:creator>giaMSU</dc:creator>
      <dc:date>2023-06-10T23:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create subsets from huge table (3,632,135 rows)</title>
      <link>https://community.jmp.com/t5/Discussions/Create-subsets-from-huge-table-3-632-135-rows/m-p/374016#M62376</link>
      <description>&lt;P&gt;If you have lots of memory, all you have to do is to select the Subset By check box, and to select id&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="subset.PNG" style="width: 475px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31879i3A08A01DDC0E9729/image-size/large?v=v2&amp;amp;px=999" role="button" title="subset.PNG" alt="subset.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Another method would be to save the subsets as they are created.&amp;nbsp; &amp;nbsp;This will allow the method to run without having to use up a lot of memory.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();
For( i = 0, i &amp;lt;= 1104, i++,
	dt &amp;lt;&amp;lt; select where( :ID == i );
	dt1 = Data Table( "2017_18Year (1)" ) &amp;lt;&amp;lt; Subset(
		Output Table( "ID = " || Char( i ) ),
		Selected Rows( 1 ),
		Selected columns( 0 )
	);
	Close( dt1, save( "path to the folder to save to" || "ID = " || Char( i ) || ".jmp" ) );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Apr 2021 21:45:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-subsets-from-huge-table-3-632-135-rows/m-p/374016#M62376</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-04-02T21:45:01Z</dc:date>
    </item>
  </channel>
</rss>

