<?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: How to delete X number of rows from end of each table before concatenating them? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-delete-X-number-of-rows-from-end-of-each-table-before/m-p/385604#M63571</link>
    <description>Thanks a lot Jim!!!</description>
    <pubDate>Sun, 16 May 2021 00:19:35 GMT</pubDate>
    <dc:creator>shasheminassab</dc:creator>
    <dc:date>2021-05-16T00:19:35Z</dc:date>
    <item>
      <title>How to delete X number of rows from end of each table before concatenating them?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-X-number-of-rows-from-end-of-each-table-before/m-p/385584#M63567</link>
      <description>&lt;P&gt;I have a large number of CSV files (with same columns but different number of rows) in a folder and would like to concatenate them all. However, I need to delete 5 rows from end of each table before concatenating them. I would appreciate any help with writing the appropriate JSL code to do this job.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:46:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-X-number-of-rows-from-end-of-each-table-before/m-p/385584#M63567</guid>
      <dc:creator>shasheminassab</dc:creator>
      <dc:date>2023-06-09T19:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete X number of rows from end of each table before concatenating them?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-X-number-of-rows-from-end-of-each-table-before/m-p/385594#M63569</link>
      <description>&lt;P&gt;Here is a simple script that will concatenate all open data tables after deleting the last 5 rows in each table.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

tableList = {};

For( i = 1, i &amp;lt;= N Table(), i++,
	Data Table( i ) &amp;lt;&amp;lt; delete rows(
		Index( N Rows( Data Table( i ) ) - 4, N Rows( Data Table( i ) ) )
	);
	Insert Into( tableList, Data Table( i ) &amp;lt;&amp;lt; get name );
);

dt = New Table( "All Tables" );

For( i = 1, i &amp;lt;= N Items( tableList ), i++,
	dt &amp;lt;&amp;lt; concatenate( Data Table( tableList[i] ), append to first table( 1 ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 May 2021 23:24:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-X-number-of-rows-from-end-of-each-table-before/m-p/385594#M63569</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-05-15T23:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete X number of rows from end of each table before concatenating them?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-X-number-of-rows-from-end-of-each-table-before/m-p/385604#M63571</link>
      <description>Thanks a lot Jim!!!</description>
      <pubDate>Sun, 16 May 2021 00:19:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-X-number-of-rows-from-end-of-each-table-before/m-p/385604#M63571</guid>
      <dc:creator>shasheminassab</dc:creator>
      <dc:date>2021-05-16T00:19:35Z</dc:date>
    </item>
  </channel>
</rss>

