<?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: Multiple File Importer opening 2 tables? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Multiple-File-Importer-opening-2-tables/m-p/701164#M88575</link>
    <description>&lt;P&gt;If you know for sure the name of it, you could just do this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt2 = Data Table( "Analysis 2" );
dt2 &amp;lt;&amp;lt; Set Name( "Analysis" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Obviously, if there's any chance of another open table having that name it'll screw everything up....&lt;/P&gt;</description>
    <pubDate>Mon, 20 Nov 2023 22:51:38 GMT</pubDate>
    <dc:creator>mmarchandTSI</dc:creator>
    <dc:date>2023-11-20T22:51:38Z</dc:date>
    <item>
      <title>Multiple File Importer opening 2 tables?</title>
      <link>https://community.jmp.com/t5/Discussions/Multiple-File-Importer-opening-2-tables/m-p/701156#M88574</link>
      <description>&lt;P&gt;I'm attempting to import data from multiple (almost identical) .csv files using the MFI, which I have scripted as &amp;nbsp; dt = Multiple File Import(&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have "Stack Similar Files" checked, selecting data from row 270, with the correct delimiters, but for some reason it is creating 2 separate files, one of which is nonsensical. The other is what I need. I checked and all files have the data I need in row 270.&lt;/P&gt;&lt;P&gt;Anyone have a problem with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could get around this if I knew how to rename that second table. The second table is created with a 2 at the end of the file name, Analysis. How do I assign a name to that table that was generated that isn't the original "dt" that I assigned with the Multiple File Import.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ERoderz_1-1700519654497.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58972i39737474A71938EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ERoderz_1-1700519654497.png" alt="ERoderz_1-1700519654497.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I'm just rusty on JSL and could use some help. Thanks all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 22:39:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multiple-File-Importer-opening-2-tables/m-p/701156#M88574</guid>
      <dc:creator>ERoderz</dc:creator>
      <dc:date>2023-11-20T22:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple File Importer opening 2 tables?</title>
      <link>https://community.jmp.com/t5/Discussions/Multiple-File-Importer-opening-2-tables/m-p/701164#M88575</link>
      <description>&lt;P&gt;If you know for sure the name of it, you could just do this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt2 = Data Table( "Analysis 2" );
dt2 &amp;lt;&amp;lt; Set Name( "Analysis" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Obviously, if there's any chance of another open table having that name it'll screw everything up....&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 22:51:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multiple-File-Importer-opening-2-tables/m-p/701164#M88575</guid>
      <dc:creator>mmarchandTSI</dc:creator>
      <dc:date>2023-11-20T22:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple File Importer opening 2 tables?</title>
      <link>https://community.jmp.com/t5/Discussions/Multiple-File-Importer-opening-2-tables/m-p/701262#M88581</link>
      <description>&lt;P&gt;Multiple File Import returns you a list of table refernces. And you can get the table names using &amp;lt;&amp;lt; Get Name if you really need to, but references should be enough&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

mfi_results = Multiple File Import(
	&amp;lt;&amp;lt;Set Folder("$SAMPLE_DATA"),
	&amp;lt;&amp;lt;Set Name Filter("Big Class*.jmp;"),
	&amp;lt;&amp;lt;Set Name Enable(1)
) &amp;lt;&amp;lt; Import Data;

Show(mfi_results);

dtnames = mfi_results &amp;lt;&amp;lt; get name;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you need to you can get the references (and names) of all open tables using&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtlist = Get Data Table List();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Nov 2023 05:22:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Multiple-File-Importer-opening-2-tables/m-p/701262#M88581</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-11-21T05:22:11Z</dc:date>
    </item>
  </channel>
</rss>

