<?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 How do you open multiple files and specify what the column names are for the files? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-you-open-multiple-files-and-specify-what-the-column-names/m-p/15042#M13948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found this script which opens multiple files but the columns in the files don't have a header and this script automatically converts the first row into column names. Do you know how to modify this to specify the first row is not the column names and specify the column names for each file if the names are all the same?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2015 02:30:05 GMT</pubDate>
    <dc:creator>tsolomon</dc:creator>
    <dc:date>2015-10-29T02:30:05Z</dc:date>
    <item>
      <title>How do you open multiple files and specify what the column names are for the files?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-you-open-multiple-files-and-specify-what-the-column-names/m-p/15042#M13948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found this script which opens multiple files but the columns in the files don't have a header and this script automatically converts the first row into column names. Do you know how to modify this to specify the first row is not the column names and specify the column names for each file if the names are all the same?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 02:30:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-you-open-multiple-files-and-specify-what-the-column-names/m-p/15042#M13948</guid>
      <dc:creator>tsolomon</dc:creator>
      <dc:date>2015-10-29T02:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do you open multiple files and specify what the column names are for the files?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-you-open-multiple-files-and-specify-what-the-column-names/m-p/15043#M13949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the script to open multiple files that I found on another posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #2600eb;"&gt;Set Default Directory&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a70096;"&gt;"C:\Jan_24th\"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #2600eb;"&gt;&lt;SPAN style="color: #000000;"&gt;files &lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;Files In Directory&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a70096;"&gt;"C:\Jan_24th\"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2600eb;"&gt;For&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; i &lt;SPAN style="color: #150097;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #009694;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; i &lt;SPAN style="color: #150097;"&gt;&amp;lt;=&lt;/SPAN&gt; &lt;SPAN style="color: #2600eb;"&gt;N Items&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; files &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; i&lt;SPAN style="color: #150097;"&gt;++,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #2600eb;"&gt;If&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #2600eb;"&gt;Ends With&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; files&lt;STRONG&gt;[&lt;/STRONG&gt;i&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #a70096;"&gt;".csv"&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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; &lt;SPAN style="color: #2600eb;"&gt;Open&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; files&lt;STRONG&gt;[&lt;/STRONG&gt;i&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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; &lt;SPAN style="color: #2600eb;"&gt;Text Box&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #2600eb;"&gt;Regex&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; files&lt;STRONG&gt;[&lt;/STRONG&gt;i&lt;STRONG&gt;]&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #a70096;"&gt;"(.+?)_"&lt;/SPAN&gt;&lt;SPAN style="color: #150097;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #a70096;"&gt;"\1"&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;SPAN style="color: #150097;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; journal&lt;SPAN style="color: #150097;"&gt;; // All text before first "_" in file &lt;EM&gt;i&lt;/EM&gt;'s name is journaled&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #150097;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 02:32:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-you-open-multiple-files-and-specify-what-the-column-names/m-p/15043#M13949</guid>
      <dc:creator>tsolomon</dc:creator>
      <dc:date>2015-10-29T02:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do you open multiple files and specify what the column names are for the files?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-you-open-multiple-files-and-specify-what-the-column-names/m-p/15044#M13950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a JMP preference.&amp;nbsp; Go to File &amp;gt;&amp;gt; Preferences (ctrl+k) and uncheck the box.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10288_pastedImage_0.png" style="width: 706px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/2367i39D724EB919D3331/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10288_pastedImage_0.png" alt="10288_pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Similarly you can can script this with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: #0000dd;"&gt;Set Preferences&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10pt; font-family: Consolas;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: black;"&gt;Import Settings&lt;STRONG&gt;(&lt;/STRONG&gt;Labels&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: teal;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: black;"&gt;)))&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN style="font-size: 10pt; font-family: Consolas; color: green;"&gt;//off&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: #0000dd;"&gt;Set Preferences&lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10pt; font-family: Consolas;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: black;"&gt;Import Settings&lt;STRONG&gt;(&lt;/STRONG&gt;Labels&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: teal;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: black;"&gt;)))&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN style="font-size: 10pt; font-family: Consolas; color: green;"&gt;//on&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be sure to turn the preference back on when you are done or else you are going to annoy your end user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 01:04:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-you-open-multiple-files-and-specify-what-the-column-names/m-p/15044#M13950</guid>
      <dc:creator>msharp</dc:creator>
      <dc:date>2016-10-19T01:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do you open multiple files and specify what the column names are for the files?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-you-open-multiple-files-and-specify-what-the-column-names/m-p/15045#M13951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The 'Open()' command is very versatile, so has many options. Select 'Help &amp;gt; Scripting Index', type 'Open' in the search field at the upper left, and look for 'Open()' in the Items list. You can then inspect and run some examples. Example 2 contains the option '&lt;SPAN style="font-family: Courier; font-size: 12px;"&gt;Table Contains Column Headers&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 12px;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 12px; color: #009193;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier; font-size: 12px;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;' which seems to be what you want.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 14:54:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-you-open-multiple-files-and-specify-what-the-column-names/m-p/15045#M13951</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2015-10-29T14:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do you open multiple files and specify what the column names are for the files?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-you-open-multiple-files-and-specify-what-the-column-names/m-p/15046#M13952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, this worked great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 17:47:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-you-open-multiple-files-and-specify-what-the-column-names/m-p/15046#M13952</guid>
      <dc:creator>tsolomon</dc:creator>
      <dc:date>2015-10-29T17:47:22Z</dc:date>
    </item>
  </channel>
</rss>

