<?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: Merge csv files with different columns names in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Merge-csv-files-with-different-columns-names/m-p/67630#M34663</link>
    <description>&lt;P&gt;Thanks Jeff. I was able to use the open file and set column name start and data starts and workfine.&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( filenow, private,
Column Names Start( 2 ),
Data Starts( 3 ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Aug 2018 14:20:37 GMT</pubDate>
    <dc:creator>AT</dc:creator>
    <dc:date>2018-08-13T14:20:37Z</dc:date>
    <item>
      <title>Merge csv files with different columns names</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-csv-files-with-different-columns-names/m-p/67338#M34593</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have many csv files that are many columns and most of them have the same column names but some have new column names and so have fewer columns. For example, the first csv has columns X, Y, the second csv has X, Y, Z, and the third csv has X, Z. I like to be able to merge these files together using JMP script. I appreciate any help on this. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 16:55:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-csv-files-with-different-columns-names/m-p/67338#M34593</guid>
      <dc:creator>AT</dc:creator>
      <dc:date>2018-08-09T16:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Merge csv files with different columns names</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-csv-files-with-different-columns-names/m-p/67342#M34596</link>
      <description>&lt;P&gt;If you mean append the files, use JMP Main Menu&amp;gt;Tables&amp;gt;Concatenate. This appends columns according to their column names, The data in the different columns needs to have the same data type and modeling type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So Open the files and then Concatenate them.&amp;nbsp; Se example 2 in the Help&amp;gt;Scripting Index&amp;gt; Objects &amp;gt; Data Table&amp;gt;Concatenate. It is an example of the data tables you described.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it were more complex use Query Builder.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 17:20:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-csv-files-with-different-columns-names/m-p/67342#M34596</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-09T17:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Merge csv files with different columns names</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-csv-files-with-different-columns-names/m-p/67343#M34597</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/10363"&gt;@AT&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have many csv files that are many columns and most of them have the same column names but some have new column names and so have fewer columns. For example, the first csv has columns X, Y, the second csv has X, Y, Z, and the third csv has X, Z. I like to be able to merge these files together using JMP script. I appreciate any help on this. Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You'll need to define "merge" a bit more clearly. Do you mean &lt;A href="https://www.jmp.com/support/help/14-1/concatenate-data-tables.shtml#192324" target="_self"&gt;concatenate&lt;/A&gt; them into one data table with columns X, Y, and Z? If so, just use Tables-&amp;gt;Concatenate to do that, it will combine like named columns automatically. If you want the script, after you use concatenate you'll get a Source script in the resulting data table showing the JSL to repeat that action.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 09 Aug 2018 22:09:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-csv-files-with-different-columns-names/m-p/67343#M34597</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2018-08-09T22:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Merge csv files with different columns names</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-csv-files-with-different-columns-names/m-p/67410#M34610</link>
      <description>&lt;P&gt;Thanks Jeff. This is very helpful. I also like to set the preferences in reading csv file to be different that default. Can one add the preferences for header row and data rows in the script? Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 20:50:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-csv-files-with-different-columns-names/m-p/67410#M34610</guid>
      <dc:creator>AT</dc:creator>
      <dc:date>2018-08-09T20:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Merge csv files with different columns names</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-csv-files-with-different-columns-names/m-p/67438#M34616</link>
      <description>&lt;P&gt;Well, you can change the defaults in Preferences.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMPScreenSnapz262.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/11953iDE6DF036C7B6EE0F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JMPScreenSnapz262.png" alt="JMPScreenSnapz262.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But, yes, you can change the import options in JSL for an individual file. The easiest way to get the JSL for a specific file is to &lt;A href="https://www.jmp.com/support/help/14-1/import-text-files.shtml#607966" target="_self"&gt;import it with&amp;nbsp;Preview&lt;/A&gt;. The resulting data table will have a Source script with the JSL for that file.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 22:16:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-csv-files-with-different-columns-names/m-p/67438#M34616</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2018-08-09T22:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Merge csv files with different columns names</title>
      <link>https://community.jmp.com/t5/Discussions/Merge-csv-files-with-different-columns-names/m-p/67630#M34663</link>
      <description>&lt;P&gt;Thanks Jeff. I was able to use the open file and set column name start and data starts and workfine.&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( filenow, private,
Column Names Start( 2 ),
Data Starts( 3 ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 14:20:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Merge-csv-files-with-different-columns-names/m-p/67630#M34663</guid>
      <dc:creator>AT</dc:creator>
      <dc:date>2018-08-13T14:20:37Z</dc:date>
    </item>
  </channel>
</rss>

