<?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: Concatenate Multiple tables with different column order in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105976#M38978</link>
    <description>Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&lt;BR /&gt;You are always a great help.</description>
    <pubDate>Mon, 14 Jan 2019 16:11:36 GMT</pubDate>
    <dc:creator>Rajat</dc:creator>
    <dc:date>2019-01-14T16:11:36Z</dc:date>
    <item>
      <title>Concatenate Multiple tables with different column order</title>
      <link>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105656#M38917</link>
      <description>&lt;P&gt;Team,&lt;/P&gt;&lt;P&gt;I have 5 csv files each having 200column (not each file have same number of columns). Each file has columns in different order. I want to write a scirpt which will let user to select all 5 files then combine all 5 files (dropping mismatched columns) and save the combined csv file to the required location. I want to use command similar to (data = Open(Pick File("Choose the File", x)), x is the directory), to pick the files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 11:16:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105656#M38917</guid>
      <dc:creator>Rajat</dc:creator>
      <dc:date>2019-01-11T11:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate Multiple tables with different column order</title>
      <link>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105677#M38920</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/13079"&gt;@Rajat&lt;/a&gt;,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Looking at the problem that you have described, let us break it down into multiple steps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 1: Selecting the desired files - using Pick File ()&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Define Your Directory and a list to hold File Paths 
MyDirectory = "C:\" ;
nFiles = 5; 
MyFilePaths = {}; 
OpenDts = {}; 

// Test if Directory exists and get all file paths
Try( If(Directory Exists(MyDirectory),
           for(i = 1 , i &amp;lt;= nFiles, i ++,
                FilePath = Pick File( "Select File", MyDirectory);
                Insert Into(MyFilePaths,FilePath); 
               ); &lt;BR /&gt;           , &lt;BR /&gt;          // else&lt;BR /&gt;          Throw()&lt;BR /&gt;&lt;/CODE&gt;&lt;CODE class=" language-jsl"&gt;         ),
       "Unable to Open File";
   ); &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 2: Looping through the files, opening and concatenating common columns&amp;nbsp;&lt;BR /&gt;Here, I have a question for you. Is there a list of columns that you expect in the final table (or) is it just the common columns across all 5 csv files ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 13:39:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105677#M38920</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2019-01-11T13:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate Multiple tables with different column order</title>
      <link>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105678#M38921</link>
      <description>Thanks Uday. I want to concatenate the common columns.</description>
      <pubDate>Fri, 11 Jan 2019 13:59:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105678#M38921</guid>
      <dc:creator>Rajat</dc:creator>
      <dc:date>2019-01-11T13:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate Multiple tables with different column order</title>
      <link>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105718#M38929</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/13079"&gt;@Rajat&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I am making an assumption (I don't know how valid it is ) that you have the same number of rows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Define Your Directory and a list to hold File Paths 
MyDirectory = "C:\" ;
nFiles = 5; 
MyFilePaths = {}; 
ColNamesListOfList = {};
OpenDts = {}; 

// Test if Directory exists and get all file paths
Try( If(Directory Exists(MyDirectory),
           for(i = 1 , i &amp;lt;= nFiles, i ++,
                FilePath = Pick File( "Select File", MyDirectory);
                Insert Into(MyFilePaths,FilePath); 
               );           
            ,          
            // else          
            Throw()         
        ),
       "Unable to Open File";
   ); 
   
// Get List of All Column Names 
for(i = 1, i &amp;lt;= nFiles, i++,
		OpenDts[i] = Open(MyDirectory || "\" || FilePath[i],"Invisible");
		ColNames = OpenDts[i] &amp;lt;&amp;lt; Get Column Names("String"); 
		Insert Into(ColNamesListOfList,ColNames);
   );
   
// Find Common Column Names 
for(i = 1, i &amp;lt;= nFiles, i++,
		ThisList = ColNamesListOfList[i];
		ThisListAsAA = Associative Array(ThisList); 
		ThisListAsAAKeys =ThisListAsAA &amp;lt;&amp;lt; Get Keys; 
		If(i == 1,
			CommonItems = ThisListAsAAKeys;
			,
			// else 
			CommonItems &amp;lt;&amp;lt; Intersect(ThisListAsAAKeys);
		  );
   );

// Concatenate 
for(i = 1, i &amp;lt;= nFiles, i++,
	If(i == 1,
		dt_Results = OpenDts[i]; 
		, 
		dt_Results &amp;lt;&amp;lt; Join(With( OpenDts[i]),
							Merge Same Name Columns,
							Select( :name, :age, :sex, :height, :weight ),
							By Row Number  // assuming that the tables have the same number of rows
						  );
	  );
   );	&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Jan 2019 17:45:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105718#M38929</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2019-01-11T17:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate Multiple tables with different column order</title>
      <link>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105763#M38945</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6696"&gt;@uday_guntupalli&lt;/a&gt;&lt;BR /&gt;Thanks for your great help.&lt;/P&gt;&lt;P&gt;I have few comments&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;All tables have different number of rows.&lt;/LI&gt;&lt;LI&gt;I want to concatenate (number of rows in final table will be sum of number of rows of individual table) the tables not to join the tables. Will the concatenate loop works same?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Also, could you please help me understand the following commands.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In loop for finding Common Column Names. Can you please explaing following lines.&lt;PRE class=" language-jsl"&gt;&lt;CODE class="  language-jsl"&gt;ThisListAsAA &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Associative Array&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;ThisList&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; 
ThisListAsAAKeys &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;ThisListAsAA &lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token messages"&gt; Get Keys&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; 
	&lt;SPAN class="token function"&gt;If&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;i &lt;SPAN class="token operator"&gt;==&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;
		CommonItems &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; ThisListAsAAKeys&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
		&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;
		&lt;SPAN class="token comment"&gt;// else &lt;/SPAN&gt;
		CommonItems &lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="token messages"&gt; Intersect&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;ThisListAsAAKeys&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	  &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;As much as I understood in "&lt;STRONG&gt;ThisListAsAA&lt;/STRONG&gt;" , "&lt;STRONG&gt;ThisList&lt;/STRONG&gt;" will get stored as associative array. Please help to understand next two lines.&lt;/LI&gt;&lt;LI&gt;In loop to join the tables, can you please explain following lines.&lt;PRE class=" language-jsl"&gt;&lt;CODE class="  language-jsl"&gt;Select&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt;name&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt;age&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt;sex&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt;height&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt;weight &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;
By Row Number&lt;/CODE&gt;&lt;/PRE&gt;There are no columns with columnnames :name, :age etc and manually we can't write to select columns as number of are huge. Also We can't join by row number as number of rows are different and we want to concatenate the table not join.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jan 2019 05:13:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105763#M38945</guid>
      <dc:creator>Rajat</dc:creator>
      <dc:date>2019-01-12T05:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate Multiple tables with different column order</title>
      <link>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105764#M38946</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/13079"&gt;@Rajat&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ThisListAsAA = Associative Array(ThisList); 
ThisListAsAAKeys =ThisListAsAA &amp;lt;&amp;lt; Get Keys; 
	If(i == 1,
		CommonItems = ThisListAsAAKeys;
		,
		// else 
		CommonItems &amp;lt;&amp;lt; Intersect(ThisListAsAAKeys);
	  );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;An associative array has a one on one relationship or mapping. So once we construct an associative array, the second line is attempting to extract the unique keys in the associative array map. As for the If block, think of set theory, when i = 1, we are assigning the unique keys of Associative Array 1 to the result. From there on, we are repeatedly interecting it with other Associative Arrays to finally arrive at a list that will only have elements that are common across all the associative arrays.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Select( :name, :age, :sex, :height, :weight ),
By Row Number&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This was a typo from my example. Select(CommonItems) would be appropriate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know if Concatenate will work, you are welcome to try&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jan 2019 05:33:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105764#M38946</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2019-01-12T05:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate Multiple tables with different column order</title>
      <link>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105789#M38947</link>
      <description>Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6696"&gt;@uday_guntupalli&lt;/a&gt;&lt;BR /&gt;If we can reorder columns and make them have same order. After that we will concatenate all the tables.&lt;BR /&gt;Can you help me to write syntax to reorder the columns of all tables based on first table then we will use concatenate command in a loop. If its not possible can we save the original column order of first table, then reorder all tables with their name and then concatenate in a loop. Finally we will reorder the final table based on earlier saved order of columns.&lt;BR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt; &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt; do you have any solution for this problem.&lt;BR /&gt;&lt;BR /&gt;Thanks. Appreciate you help.</description>
      <pubDate>Sat, 12 Jan 2019 13:49:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105789#M38947</guid>
      <dc:creator>Rajat</dc:creator>
      <dc:date>2019-01-12T13:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate Multiple tables with different column order</title>
      <link>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105790#M38948</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/13079"&gt;@Rajat&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Reorder By Name();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 12 Jan 2019 14:06:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105790#M38948</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2019-01-12T14:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate Multiple tables with different column order</title>
      <link>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105791#M38949</link>
      <description>&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6696"&gt;@uday_guntupalli&lt;/a&gt;&lt;BR /&gt;Can help me to write the syntax to save the original order and reorder the final table with the saved order?&lt;BR /&gt;Thanks</description>
      <pubDate>Sat, 12 Jan 2019 14:09:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105791#M38949</guid>
      <dc:creator>Rajat</dc:creator>
      <dc:date>2019-01-12T14:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate Multiple tables with different column order</title>
      <link>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105792#M38950</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/13079"&gt;@Rajat&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I don't understand why you would need to create a new table. I would do something like this.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
OriginalColOrder = dt &amp;lt;&amp;lt; Get Column Names("string");
dt &amp;lt;&amp;lt; Reorder By Name();
SortedColOrder = dt &amp;lt;&amp;lt; Get Column Names("string");
Show(OriginalColOrder);
Show(SortedColOrder); &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The lists provide you both the sorted order and original order. Also, please share what you have tried thus far, so it is easier to see where you are headed. I am unable to exactly understand what you have tried thus far and where you are failing. If you are unable to share your data, try to create some sample data, so it is easy for everyone to recreate the issues and help guide you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jan 2019 14:27:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105792#M38950</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2019-01-12T14:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate Multiple tables with different column order</title>
      <link>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105794#M38952</link>
      <description>&lt;P&gt;Here is a rework of the script,&amp;nbsp;selecting all of the files to be concatenated in one selection, and then running a little script to put them together, keeping only columns that find a match. &amp;nbsp;I have built it to your specifications, however it could easily be changed to allow the concatenation of any number of files&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

inputDirectory = "C:\";

// Select the files to be read in......this can be any number of files
filePath = Pick File(
	"Choose the File to be Concatenated to:",
	inputDirectory,
	{"CSV Files|csv;", "All Files|*"},
	1,
	0,
	""
);
// Open the first file
dtMain = Open( filePath, invisible );


files = Pick File(
	"Choose the Additional 4 Files to Read In:",
	inputDirectory,
	{"CSV Files|csv;", "All Files|*"},
	1,
	0,
	"",
	multiple
);

// Validate that files have been read in
If( Try( N Items( files ), 0 ) == 4,
	Dialog( "Incorrect number of files were read in."
		"Only 4 additional files can be read in");
	Throw( "Incorrect number of files were read in" );
);

// Read in the remaining files and process them
For( i = 2, i &amp;lt;= N Items( Files ), i++,
	Try( dtConCat = Open( Files[i], invisible ) );
	
	mainColList = dtMain &amp;lt;&amp;lt; Get Column Names( string );
	
	conCatColList = dtConCat &amp;lt;&amp;lt; Get Column Names( string );
	
	// Delete the columns in the dtConCat table that do not exist in the dtMain table
	delList = {};
	For( k = 1, k &amp;lt;= N Items( conCatColList ), k++,
		If( N Rows( Loc( mainColList, conCatColList[k] ) ) == 0,
			Insert Into( delList, conCatColList[k] )
		)
	);
	If( N Items( delList ) &amp;gt; 0,
		dtConCat &amp;lt;&amp;lt; delete columns( delList )
	);

	// Delete the columns in the dtMain table that were not found in the dtConCat table
	delList = {};
	For( k = 1, k &amp;lt;= N Items( mainColList ),
		k++,
		If( N Rows( Loc( conCatColList, mainColList[k] ) ) == 0,
			Insert Into( delList, mainColList[k] )
		)
	);
	If( N Items( delList ) &amp;gt; 0,
		dtMain &amp;lt;&amp;lt; delete columns( delList )
	);
	
	// If any columns still remain in the two tables, then concatenate them together
	If( N Cols( dtMain ) &amp;gt; 0 &amp;amp; N Cols( dtConCat ) &amp;gt; 0,
		dtMain = dtMain &amp;lt;&amp;lt; Concatenate( dtConCat, Append to First Table )
	);
	
	// Close the no longer needed file
	Close( dtConCat, nosave );
	
);

// Make the main file visible
dtMain &amp;lt;&amp;lt; show window( 1 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jan 2019 15:33:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105794#M38952</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-01-12T15:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate Multiple tables with different column order</title>
      <link>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105976#M38978</link>
      <description>Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&lt;BR /&gt;You are always a great help.</description>
      <pubDate>Mon, 14 Jan 2019 16:11:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Concatenate-Multiple-tables-with-different-column-order/m-p/105976#M38978</guid>
      <dc:creator>Rajat</dc:creator>
      <dc:date>2019-01-14T16:11:36Z</dc:date>
    </item>
  </channel>
</rss>

