<?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 import 30 Excel files without opening the data tables? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-import-30-Excel-files-without-opening-the-data-tables/m-p/600945#M80433</link>
    <description>&lt;P&gt;Thanks, Jim. Very nice.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2023 17:31:52 GMT</pubDate>
    <dc:creator>TDK_Long</dc:creator>
    <dc:date>2023-02-14T17:31:52Z</dc:date>
    <item>
      <title>How to import 30 Excel files without opening the data tables?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-import-30-Excel-files-without-opening-the-data-tables/m-p/600634#M80405</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using JMP scripts to import the data of 30 Excel files. When I run it, there will be 30 data tables opened during the "Open" action. So I have to manually close each of these 30 data tables, which is very tedious. Is there a way that I can read / import the data from Excel without opening the data table so that I do not need to close the data table one by one? Your comments / suggestions are much appreciated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt01 = Open( "$SAMPLE_DATA/Big Class01.jmp" );
dt02 = Open( "$SAMPLE_DATA/Big Class02.jmp" );
dt03 = Open( "$SAMPLE_DATA/Big Class03.jmp" );
dt04 = Open( "$SAMPLE_DATA/Big Class04.jmp" );
dt05 = Open( "$SAMPLE_DATA/Big Class05.jmp" );
dt06 = Open( "$SAMPLE_DATA/Big Class06.jmp" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:36:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-import-30-Excel-files-without-opening-the-data-tables/m-p/600634#M80405</guid>
      <dc:creator>TDK_Long</dc:creator>
      <dc:date>2023-06-08T16:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to import 30 Excel files without opening the data tables?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-import-30-Excel-files-without-opening-the-data-tables/m-p/600672#M80407</link>
      <description>&lt;P&gt;To close the 30 files, you can script the close action as well;&lt;/P&gt;&lt;P&gt;Close (dt01);&lt;/P&gt;&lt;P&gt;Close (dt02);&lt;/P&gt;&lt;P&gt;Close (dt03);&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 01:20:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-import-30-Excel-files-without-opening-the-data-tables/m-p/600672#M80407</guid>
      <dc:creator>WebDesignesCrow</dc:creator>
      <dc:date>2023-02-14T01:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to import 30 Excel files without opening the data tables?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-import-30-Excel-files-without-opening-the-data-tables/m-p/600685#M80408</link>
      <description>&lt;P&gt;It is pretty simple to handle multiple open files that need to be closed.&amp;nbsp; Below is an expansion on your example, that opens the data tables, without having them visible, and then closing them when the activity with them is complete.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dList = {};

dt01 = Open( "$SAMPLE_DATA/Big Class01.jmp", invisible );
Insert Into( dList, "dt01" );
dt02 = Open( "$SAMPLE_DATA/Big Class02.jmp", invisible );
Insert Into( dList, "dt02" );
dt03 = Open( "$SAMPLE_DATA/Big Class03.jmp", invisible );
Insert Into( dList, "dt03" );
dt04 = Open( "$SAMPLE_DATA/Big Class04.jmp", invisible );
Insert Into( dList, "dt04" );
dt05 = Open( "$SAMPLE_DATA/Big Class05.jmp", invisible );
Insert Into( dList, "dt05" );
dt06 = Open( "$SAMPLE_DATA/Big Class06.jmp", invisible );
Insert Into( dList, "dt06" );

// When ready to close them
For Each( {dt, i}, dList,
	Close( Eval( Parse( dList[i] ) ), nosave )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Rather than using the "Invisible" option, the "Private" option can be used, and then the data table is not visible in the Home Window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to provide this capability in an interactive mode, you can open all of the data tables, and then using the Home Window, you can highlight all of the data table you want to close, and the right click, and select "Close".&amp;nbsp; JMP will ask is you want to Save the data tables, and you can select "Save None" and it will then close all of the highlighted data tables all at once.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 01:46:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-import-30-Excel-files-without-opening-the-data-tables/m-p/600685#M80408</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-02-14T01:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to import 30 Excel files without opening the data tables?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-import-30-Excel-files-without-opening-the-data-tables/m-p/600691#M80410</link>
      <description>&lt;P&gt;Take a look at Multiple File Import. MFI can load similar external files into a single JMP data table.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Import all the xlsx files from a directory." style="width: 821px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/50124i89BCAFD3913B017C/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture.png" alt="Import all the xlsx files from a directory." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Import all the xlsx files from a directory.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can save (and modify) the script to re-import again.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 02:15:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-import-30-Excel-files-without-opening-the-data-tables/m-p/600691#M80410</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-02-14T02:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to import 30 Excel files without opening the data tables?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-import-30-Excel-files-without-opening-the-data-tables/m-p/600945#M80433</link>
      <description>&lt;P&gt;Thanks, Jim. Very nice.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 17:31:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-import-30-Excel-files-without-opening-the-data-tables/m-p/600945#M80433</guid>
      <dc:creator>TDK_Long</dc:creator>
      <dc:date>2023-02-14T17:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to import 30 Excel files without opening the data tables?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-import-30-Excel-files-without-opening-the-data-tables/m-p/600946#M80434</link>
      <description>&lt;P&gt;Thank you Craige.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 17:32:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-import-30-Excel-files-without-opening-the-data-tables/m-p/600946#M80434</guid>
      <dc:creator>TDK_Long</dc:creator>
      <dc:date>2023-02-14T17:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to import 30 Excel files without opening the data tables?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-import-30-Excel-files-without-opening-the-data-tables/m-p/601021#M80446</link>
      <description>&lt;P&gt;You must import data into a data table. I assume you want to avoid the tedium of opening and closing individual files. Have you tried the &lt;A href="https://www.jmp.com/support/help/en/17.0/index.shtml#page/jmp/import-data.shtml" target="_self"&gt;Multiple File Import&lt;/A&gt; feature?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 19:36:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-import-30-Excel-files-without-opening-the-data-tables/m-p/601021#M80446</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2023-02-14T19:36:57Z</dc:date>
    </item>
  </channel>
</rss>

