<?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: Merging JSL setup using &amp;quot;Join&amp;quot; in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Merging-JSL-setup-using-quot-Join-quot/m-p/6312#M6311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I apologize, I guess I'm not being clear:&lt;/P&gt;&lt;P&gt;I understand I need to keep the tables that were added to the list open - if I comment out the Close All(Data Tables, nosave) in my code I get&lt;/P&gt;&lt;P&gt;the following in my Log (I have a reference to an origianl table that shouldn't be in the openDT list, and that transfers into the OTs.&amp;nbsp; I'm sure I just need a close fxn for that table and I could figure that out.&amp;nbsp; I've specified previously the merge does work, but not how I want it to work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3141_close_commented_out.jpg" style="width: 775px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/126iBC218A1D6F428536/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3141_close_commented_out.jpg" alt="3141_close_commented_out.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But in my code where I have //invisible (for the w = z &amp;lt;&amp;lt; Split...), I want to uncomment the invisible, but because the invisible fxn only recognizes the last table of the loop and all others are deleted I need a way to references these and keep them in a list so I can refer to them as a whole. (Close all is also commented out)&amp;nbsp; &lt;STRONG&gt;How do I do this?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3142_invisivle tables.jpg" style="width: 724px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/127i400996817386AD65/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3142_invisivle tables.jpg" alt="3142_invisivle tables.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Invisibility is the problem, b/c unless I figure out a way to reference each invisible table then there's no way I can merge multiple tables. It's looking like I'll need to move the Join code into the loop, but I don't know how to incorporate this if it's only looping through one table at a time and I'm needing to reference at least two.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2016 20:08:15 GMT</pubDate>
    <dc:creator>osbornsarah9</dc:creator>
    <dc:date>2016-10-18T20:08:15Z</dc:date>
    <item>
      <title>Merging JSL setup using "Join"</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-JSL-setup-using-quot-Join-quot/m-p/6306#M6305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found I can merge two data sets best by using the "Join" data tables command, this best elminates possible duplicate entries that may exist - column 1 contains unique number for each entry.&amp;nbsp; I have a script which opens multiple data tables and manipulates the data, but I'm having trouble calling out each data table separately in order to get the "join" script to work correctly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am manually doing this the code is as such:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-size: 12pt; font-family: Courier New;"&gt;&lt;SPAN style="color: #3366ff;"&gt;Data Table&lt;/SPAN&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 12pt; font-family: Courier New;"&gt;"Untitled 322"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; Join&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000dd; font-size: 12pt; font-family: Courier New;"&gt;Data Table&lt;/SPAN&gt;&lt;STRONG style=": ; font-size: 12pt; font-family: Courier New;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 12pt; font-family: Courier New;"&gt;"Untitled 318"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Merge Same Name Columns&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; By Matching Columns(&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;REPLICATE_ID &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;REPLICATE_ID &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Drop multiples(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #008080; font-size: 12pt; font-family: Courier New;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #008080; font-size: 12pt; font-family: Courier New;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 12pt; font-family: Courier New;"&gt;"Include non-matches"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;STRONG&gt;)(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #008080; font-size: 12pt; font-family: Courier New;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #008080; font-size: 12pt; font-family: Courier New;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Preserve main table order(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #008080; font-size: 12pt; font-family: Courier New;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Output Table(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 12pt; font-family: Courier New;"&gt;"Merged"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG&gt;My problem comes in when I try to code this form multiple tables.&amp;nbsp; The Untitled tables (untitled 322, untitled 318, etc - there may be more depending how many files i open) are designated in my code as &lt;W&gt;.&amp;nbsp; So I want to somehow take my max &lt;W&gt; and join with every other w.&lt;/W&gt;&lt;/W&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG&gt;I set up something as follows:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG&gt;For (f = Data Table &lt;W&gt;, f &amp;gt;= 1, f--,&lt;/W&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try(v = w &amp;lt;&amp;lt; Join( With(Data Table (f)),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *and the rest follows the join table properties listed above*&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG&gt;However my code doesn't work.&amp;nbsp; Anyone have an idea how I can do this?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 18:21:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-JSL-setup-using-quot-Join-quot/m-p/6306#M6305</guid>
      <dc:creator>osbornsarah9</dc:creator>
      <dc:date>2013-02-18T18:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Merging JSL setup using "Join"</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-JSL-setup-using-quot-Join-quot/m-p/6307#M6306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might get you started as an example. It's not perfect as after execution the last of the open tables is also closed ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;&lt;BR /&gt;&lt;P&gt;Close All(data tables);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;New Table("a") &amp;lt;&amp;lt; Add Rows(3);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;:Column 1 &amp;lt;&amp;lt; Set Values([1, 2, 3, 4, 5, 6]);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;New Column("Label", Character) &amp;lt;&amp;lt; Set Each Value("a");&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;New Table("b") &amp;lt;&amp;lt; Add Rows(3);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;:Column 1 &amp;lt;&amp;lt; Set Values([1, 2, 3, 7, 8, 9]);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;New Column("Label", Character) &amp;lt;&amp;lt; Set Each Value("b");&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;New Table("c") &amp;lt;&amp;lt; Add Rows(3);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;:Column 1 &amp;lt;&amp;lt; Set Values([1, 2, 3, 10, 11, 12]);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;New Column("Label", Character) &amp;lt;&amp;lt; Set Each Value("c");&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;New Table("d") &amp;lt;&amp;lt; Add Rows(3);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;:Column 1 &amp;lt;&amp;lt; Set Values([1, 2, 3, 13, 14, 15]);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;New Column("Label", Character) &amp;lt;&amp;lt; Set Each Value("d");&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;t_count = N Table();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;dt_old = Data Table(t_count);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Show(dt_old &amp;lt;&amp;lt; get name());&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;dt_new = Data Table(1);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;For(i = 2, i &amp;lt;= t_count, i++,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt_old = dt_new;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt_new = dt_old &amp;lt;&amp;lt; Join(&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; With(Data Table(i)),&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Merge Same Name Columns,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; By Matching Columns(:Column 1 = :Column 1),&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Drop multiples(1, 1),&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name("Include non-matches")(1, 1)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Close(dt_old);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;);&lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 09:50:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-JSL-setup-using-quot-Join-quot/m-p/6307#M6306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-19T09:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Merging JSL setup using "Join"</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-JSL-setup-using-quot-Join-quot/m-p/6308#M6307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, I tried something similar where I sent my open tables to a list:&lt;/P&gt;&lt;P&gt;Before this code, I have code where *txt files are opened (I could have up to 30+ files) and converted into a JMP data table (thus output of up to 30+ tables).&amp;nbsp; I am then trying to merge all these tables into &lt;STRONG&gt;one table&lt;/STRONG&gt; however, some files may contain duplicate information that needs to be deleted out - I found I can do this using the Join table property.&amp;nbsp; So per the code below.&amp;nbsp; I successfully get 1 table = MT, and the others are in a list = OTs.&amp;nbsp; I want to join each OTs from the list and join it to MT so I get:&lt;/P&gt;&lt;P&gt;MT+OT(1) = MergedTable, then MergedTable+OT(2) = MergedTable2, then MergedTable2+OT(3) = MergedTable3, etc until I get &lt;STRONG&gt;one master table containing all the data (and the others are closed)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;code&amp;gt;&lt;/P&gt;&lt;P&gt;openDT = List();&lt;/P&gt;&lt;P&gt;For (f = 1, f &amp;lt;= N Table(), f++,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Insert Into(open DT, Data Table(f)););&lt;/P&gt;&lt;P&gt;Show(openDT);&lt;/P&gt;&lt;P&gt;MT = DataTable(1);&lt;/P&gt;&lt;P&gt;Close(Data Table(1), nosave);&lt;/P&gt;&lt;P&gt;OTs = List();&lt;/P&gt;&lt;P&gt;For(g = 1, g&amp;lt;= N Items(openDT) -1, g++,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Insert Into (OTs, DataTable(g));&lt;/P&gt;&lt;P&gt;Close All (DataTables, nosave);&lt;/P&gt;&lt;P&gt;Show(OTs);&lt;/P&gt;&lt;P&gt;Show(MT);&lt;/P&gt;&lt;P&gt;For( h = 1, h &amp;lt;= N Items(OTs), h++,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MT &amp;lt;&amp;lt; Join(With(ST),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Update,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; By Matching Columns(:Column_1 = :Column_1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Drop multiples(1,0),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name("Include non-matches")(1, 1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Preserve main table order(1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Output Table("Merged")););&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Continue());&lt;/P&gt;&lt;P&gt;&amp;lt;/code&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run the script - everything works fine up until the Join command where I get the following error&lt;/P&gt;&lt;P&gt;"Send Expects Scriptable Object{169} in access or evaluation of 'Send',"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; font-size: 12pt; font-family: Courier New;"&gt;For(&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; h &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #008080; font-size: 12pt; font-family: Courier New;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; h &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000dd; font-size: 12pt; font-family: Courier New;"&gt;N Items&lt;/SPAN&gt;&lt;STRONG style=": ; font-size: 12pt; font-family: Courier New;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; OTs &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; h&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;++,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;MT &amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #21bc2d; font-size: 12pt; font-family: Courier New;"&gt;/*###*/&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;Join&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;With(ST),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;Update&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;By Matching Columns(&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;Column_1 &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;Column_1 &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;Drop multiples(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #008080; font-size: 12pt; font-family: Courier New;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #008080; font-size: 12pt; font-family: Courier New;"&gt;0&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;Name(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 12pt; font-family: Courier New;"&gt;"Include non-matches"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;STRONG&gt;)(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #008080; font-size: 12pt; font-family: Courier New;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #008080; font-size: 12pt; font-family: Courier New;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;Preserve main table order(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #008080; font-size: 12pt; font-family: Courier New;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;Output Table(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 12pt; font-family: Courier New;"&gt;"Merged"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; &lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #21bc2d; font-size: 12pt; font-family: Courier New;"&gt;/*###*/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;Continue();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;Help? I'm banging my head against the wall trying to figure out why this isn't working&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 23:05:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-JSL-setup-using-quot-Join-quot/m-p/6308#M6307</guid>
      <dc:creator>osbornsarah9</dc:creator>
      <dc:date>2013-02-28T23:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Merging JSL setup using "Join"</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-JSL-setup-using-quot-Join-quot/m-p/6309#M6308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like all tables are closed prior the Join(). The List OTs is just a list of datatable references. They are not "scriptable objects" if the corresponding tables are gone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #2800e1;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="color: #000000;"&gt;my_path &lt;/SPAN&gt;&lt;SPAN style="color: #160091;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #801392;"&gt;"/Users/.../Files/"&lt;/SPAN&gt;&lt;SPAN style="color: #160091;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;//path to directory of the.txt files&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;flist &lt;SPAN style="color: #160091;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #2800e1;"&gt;Files In Directory&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; my_path &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;;&lt;/SPAN&gt; &lt;SPAN style="color: #4c910b;"&gt;//List of all files&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;n &lt;SPAN style="color: #160091;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #2800e1;"&gt;N Items&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; flist &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #4c910b;"&gt;// Remove non-text files from flist&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #2800e1;"&gt;For&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; i &lt;SPAN style="color: #160091;"&gt;=&lt;/SPAN&gt; n&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt; i &lt;SPAN style="color: #160091;"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt; i&lt;SPAN style="color: #160091;"&gt;--,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &lt;SPAN style="color: #2800e1;"&gt;If&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #2800e1;"&gt;Contains&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; flist&lt;STRONG&gt;[&lt;/STRONG&gt;i&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #801392;"&gt;".txt"&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;SPAN style="color: #160091;"&gt;==&lt;/SPAN&gt; &lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &lt;SPAN style="color: #2800e1;"&gt;Remove From&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; flist&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt; i &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; n&lt;SPAN style="color: #160091;"&gt;--;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #4c910b;"&gt;// Function for open text files (edit column and import settings if necessary)&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;open_file &lt;SPAN style="color: #160091;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #2800e1;"&gt;Function&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;STRONG&gt;{&lt;/STRONG&gt;x&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #2800e1;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;Open&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; my_path &lt;SPAN style="color: #160091;"&gt;||&lt;/SPAN&gt; flist&lt;STRONG&gt;[&lt;/STRONG&gt;x&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; Import Settings&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; End Of Line&lt;STRONG&gt;(&lt;/STRONG&gt; CRLF&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt; CR&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt; LF &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; End Of Field&lt;STRONG&gt;(&lt;/STRONG&gt; Tab &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; Strip Quotes&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; Use Apostrophe as Quotation Mark&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; Scan Whole File&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; Labels&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; Column Names Start&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; Data Starts&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; Lines To Read&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #2800e1;"&gt;All&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; Year Rule&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #801392;"&gt;"10-90"&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #4c910b;"&gt;// Open first file&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;MT &lt;SPAN style="color: #160091;"&gt;=&lt;/SPAN&gt; open_file&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #4c910b;"&gt;//Join all files in flist &lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #2800e1;"&gt;For&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; i &lt;SPAN style="color: #160091;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt; i &lt;SPAN style="color: #160091;"&gt;&amp;lt;=&lt;/SPAN&gt; n&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt; i&lt;SPAN style="color: #160091;"&gt;++,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; ST &lt;SPAN style="color: #160091;"&gt;=&lt;/SPAN&gt; open_file&lt;STRONG&gt;(&lt;/STRONG&gt; i &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; FT &lt;SPAN style="color: #160091;"&gt;=&lt;/SPAN&gt; MT&lt;SPAN style="color: #160091;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; MT &lt;SPAN style="color: #160091;"&gt;=&lt;/SPAN&gt; FT &lt;SPAN style="color: #160091;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; Join&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; With&lt;STRONG&gt;(&lt;/STRONG&gt; ST &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; Update&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; By Matching Columns&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #160091;"&gt;:&lt;/SPAN&gt;Column_1 &lt;SPAN style="color: #160091;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #160091;"&gt;:&lt;/SPAN&gt;Column_1 &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; Drop multiples&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #801392;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; Name&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;"Include non-matches"&lt;SPAN style="color: #000000;"&gt; &lt;STRONG&gt;)(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; Preserve main table order&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; Output Table&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #801392;"&gt;"Merged"&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #4c910b;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;// Clean up&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &lt;SPAN style="color: #2800e1;"&gt;Close&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; ST&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt; no save &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &lt;SPAN style="color: #2800e1;"&gt;Close&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; FT&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt; no save &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #160091;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 11:36:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-JSL-setup-using-quot-Join-quot/m-p/6309#M6308</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2013-03-01T11:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Merging JSL setup using "Join"</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-JSL-setup-using-quot-Join-quot/m-p/6310#M6309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm, I can't merge the origianl txt files though - I'm merging the intermediate invisible files created from the split/formatting of the original txt files.&amp;nbsp; As these files are invisible and intermediate, there is not a root directory where they are saved (the point of why I'm using the invisible function - it saves spaces and time). I get what you're saying though, even though my tables are in&amp;nbsp; list, they are closed so there's no way to reference them but "opening" them doesn't apply as they are intermediate/invisible files created from the txt file that are not saved is any directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the breakdown of what I'm doing:&lt;/P&gt;&lt;P&gt;1. I open the txt files code is similar to what you have (Will have name Data Table ("Result1"))&lt;/P&gt;&lt;P&gt;2. I reformat these txt files (they are not in column format, so I have code where I "split", format, etc, into a more readable data table in JMP. - I will call these INTERMEDIATE tables (Will have name Data Table("Untitled1"))&lt;/P&gt;&lt;P&gt;3. these intermediate files are invisible (there's just too many to make them visible) - I do not save them as I do not want a directory of saved intermediate files that i have to go delete later.&lt;/P&gt;&lt;P&gt;4. My issue is I'm trying to merge the intermediate tables&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I see it would be easier to just join the original files, but they do not come in a format to where I'm able to do that, thus my conundrum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the code I have (and referenced previously) works if my intermediate tables are not invisible AND I do not close the intermediate tables I'm referencing to join (doesn't work exactly how I want it too, but nonetheless it works) - but then I have ALL the tables open - the merged and unmerged&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the real questions I have are:&lt;/P&gt;&lt;P&gt;a) I have intermediate tables - essentially I want them to be invisible but in order to reference them into the MT/OTs lists, I'm having to make them visible for this to work - essentially I want these invisible though.&amp;nbsp; So my real question is: &lt;SPAN style="color: #800000;"&gt;&lt;STRONG&gt;How do I reference invisible intermediate tables w/in a loop to recognize each table to be used for further calcualtion (in order to use the join tables fxn it seems I must have it outside the For loop so I can join two instances of the intermediate tables)?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the script.&amp;nbsp; maybe this will explain what I'm trying to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 18:27:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-JSL-setup-using-quot-Join-quot/m-p/6310#M6309</guid>
      <dc:creator>osbornsarah9</dc:creator>
      <dc:date>2013-03-01T18:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Merging JSL setup using "Join"</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-JSL-setup-using-quot-Join-quot/m-p/6311#M6310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Invisibility is not the problem here. Invisible tables can be referenced to and joined with other invisible or visible tables. Closed and invisible tables are not the same thing. Closed tables are completely useless, they are gone and forgotten. In the script you have placed &lt;SPAN style="color: #2600eb;"&gt;Close All&lt;/SPAN&gt; &lt;STRONG&gt;(&lt;/STRONG&gt;Data Tables&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; nosave&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt; before the merging code part. That should results in that all tables are forgotten about and the merge will fail. Wait until your'e done before closing tables, invisible or not.&lt;/P&gt;&lt;P&gt;Or use my approach above, i.e open a table one at the time, do whatever editing and splitting you want, and then merge them with the current MT before closing and moving on to the next file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 21:36:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-JSL-setup-using-quot-Join-quot/m-p/6311#M6310</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2013-03-01T21:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Merging JSL setup using "Join"</title>
      <link>https://community.jmp.com/t5/Discussions/Merging-JSL-setup-using-quot-Join-quot/m-p/6312#M6311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I apologize, I guess I'm not being clear:&lt;/P&gt;&lt;P&gt;I understand I need to keep the tables that were added to the list open - if I comment out the Close All(Data Tables, nosave) in my code I get&lt;/P&gt;&lt;P&gt;the following in my Log (I have a reference to an origianl table that shouldn't be in the openDT list, and that transfers into the OTs.&amp;nbsp; I'm sure I just need a close fxn for that table and I could figure that out.&amp;nbsp; I've specified previously the merge does work, but not how I want it to work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3141_close_commented_out.jpg" style="width: 775px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/126iBC218A1D6F428536/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3141_close_commented_out.jpg" alt="3141_close_commented_out.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But in my code where I have //invisible (for the w = z &amp;lt;&amp;lt; Split...), I want to uncomment the invisible, but because the invisible fxn only recognizes the last table of the loop and all others are deleted I need a way to references these and keep them in a list so I can refer to them as a whole. (Close all is also commented out)&amp;nbsp; &lt;STRONG&gt;How do I do this?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3142_invisivle tables.jpg" style="width: 724px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/127i400996817386AD65/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3142_invisivle tables.jpg" alt="3142_invisivle tables.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Invisibility is the problem, b/c unless I figure out a way to reference each invisible table then there's no way I can merge multiple tables. It's looking like I'll need to move the Join code into the loop, but I don't know how to incorporate this if it's only looping through one table at a time and I'm needing to reference at least two.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 20:08:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merging-JSL-setup-using-quot-Join-quot/m-p/6312#M6311</guid>
      <dc:creator>osbornsarah9</dc:creator>
      <dc:date>2016-10-18T20:08:15Z</dc:date>
    </item>
  </channel>
</rss>

