<?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/close all data table with non zero rows from workspace at once? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-delete-close-all-data-table-with-zero-rows-from-workspace/m-p/225651#M44802</link>
    <description>&lt;P&gt;There exist multiple previous discussions on this.&amp;nbsp; But, here is a simple piece of code that will do what you want:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

For( i = N Table(), i &amp;gt;= 1, i--,
	If( N Rows( Data Table( i ) ) == 0,
		Close( Data Table( i ), nosave )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 13 Sep 2019 00:42:12 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2019-09-13T00:42:12Z</dc:date>
    <item>
      <title>How to delete/close all data table with  zero rows from workspace all at once?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-close-all-data-table-with-zero-rows-from-workspace/m-p/225638#M44798</link>
      <description />
      <pubDate>Sun, 11 Jun 2023 11:50:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-close-all-data-table-with-zero-rows-from-workspace/m-p/225638#M44798</guid>
      <dc:creator>Souvik</dc:creator>
      <dc:date>2023-06-11T11:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete/close all data table with non zero rows from workspace at once?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-close-all-data-table-with-zero-rows-from-workspace/m-p/225649#M44800</link>
      <description>&lt;P&gt;Does that mean you want to keep tables open if they have zero rows?&amp;nbsp; Not sure how to do that without a script, but generally if I want to close all my tables then I go to one of my tables and from the menu select Window&amp;gt;Close All Data Tables.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 22:32:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-close-all-data-table-with-zero-rows-from-workspace/m-p/225649#M44800</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2019-09-12T22:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete/close all data table with non zero rows from workspace at once?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-close-all-data-table-with-zero-rows-from-workspace/m-p/225650#M44801</link>
      <description>Hello David, sorry there was a typo in the question, I want to delete/remove all the tables that are there in my workspace which has zero rows; I mean close all the empty tables at once.&lt;BR /&gt;&lt;BR /&gt;Actually I have developed a script which is generating about 100 tables and some tables (about 30 suppose) will not contain any data hence empty. I want to remove those tables from workspace in order to make it look clean and also easy to navigate between tables.&lt;BR /&gt;&lt;BR /&gt;I would like to know if any jsl command is there to do the operation ?</description>
      <pubDate>Thu, 12 Sep 2019 22:57:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-close-all-data-table-with-zero-rows-from-workspace/m-p/225650#M44801</guid>
      <dc:creator>Souvik</dc:creator>
      <dc:date>2019-09-12T22:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete/close all data table with non zero rows from workspace at once?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-close-all-data-table-with-zero-rows-from-workspace/m-p/225651#M44802</link>
      <description>&lt;P&gt;There exist multiple previous discussions on this.&amp;nbsp; But, here is a simple piece of code that will do what you want:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

For( i = N Table(), i &amp;gt;= 1, i--,
	If( N Rows( Data Table( i ) ) == 0,
		Close( Data Table( i ), nosave )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Sep 2019 00:42:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-close-all-data-table-with-zero-rows-from-workspace/m-p/225651#M44802</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-09-13T00:42:12Z</dc:date>
    </item>
  </channel>
</rss>

