<?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: How to exclude headers and footers while importing multiple txt files via Import Multiple Files Wizard? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-exclude-headers-and-footers-while-importing-multiple-txt/m-p/843248#M101700</link>
    <description>&lt;P&gt;Are header and footer data useless information?&lt;/P&gt;</description>
    <pubDate>Thu, 20 Feb 2025 17:58:44 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2025-02-20T17:58:44Z</dc:date>
    <item>
      <title>How to exclude headers and footers while importing multiple txt files via Import Multiple Files Wizard?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-exclude-headers-and-footers-while-importing-multiple-txt/m-p/843132#M101680</link>
      <description>&lt;P&gt;I am trying to import multiple *.txt data files from folders and subfolders. All data files have headers and footers (both starting with !).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Headers are from line 1 to line 21. Line 22 has the test parameter names while test data starts from line 23. When data ends, the footer information starts (with !). All data is tab separated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I am unable to get data imported with parameter names as column names using settings as per numbers, even when I try for a single data file. The header line is always showing up as column name and parameters in the first data row.&lt;/P&gt;&lt;P&gt;2. I do not expect to be able to remove the footer information with my settings, but I need to. How to achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Al the end, I need to vertically concatenate the data with an additional file-name column and correct column (parameter) names. Where am I going wrong?&lt;/P&gt;&lt;P&gt;If this is not possible via the multiple file import wizard, what are my options via JSL?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 12:42:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-exclude-headers-and-footers-while-importing-multiple-txt/m-p/843132#M101680</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2025-02-20T12:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude headers and footers while importing multiple txt files via Import Multiple Files Wizard?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-exclude-headers-and-footers-while-importing-multiple-txt/m-p/843142#M101681</link>
      <description>&lt;P&gt;Without seeing your files: consider doing this in few separate multiple file imports and then combine the resulting tables. Or use JSL and you are not limited by Multiple File Imports options&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 13:01:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-exclude-headers-and-footers-while-importing-multiple-txt/m-p/843142#M101681</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-02-20T13:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude headers and footers while importing multiple txt files via Import Multiple Files Wizard?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-exclude-headers-and-footers-while-importing-multiple-txt/m-p/843237#M101697</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;Thanks. Here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discussions/How-to-exclude-header-and-footer-when-using-open-to-import-a/td-p/443851" target="_self"&gt;https://community.jmp.com/t5/Discussions/How-to-exclude-header-and-footer-when-using-open-to-import-a/td-p/443851&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I had given an example earlier of how my data file looks like only now I have hundreds of them in folders and subfolder within.&lt;/P&gt;&lt;P&gt;Also, they are *.txt as mentioned in my OP (and not a JMP data table), hence I went the Import Multiple Files way.&lt;/P&gt;&lt;P&gt;Ideally, I would like to use the Import Multiple Files wizard, but perhaps invoke it via a JSL to take into account my requirements. Could I get some direction please?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 17:40:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-exclude-headers-and-footers-while-importing-multiple-txt/m-p/843237#M101697</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2025-02-20T17:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude headers and footers while importing multiple txt files via Import Multiple Files Wizard?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-exclude-headers-and-footers-while-importing-multiple-txt/m-p/843248#M101700</link>
      <description>&lt;P&gt;Are header and footer data useless information?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 17:58:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-exclude-headers-and-footers-while-importing-multiple-txt/m-p/843248#M101700</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-02-20T17:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude headers and footers while importing multiple txt files via Import Multiple Files Wizard?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-exclude-headers-and-footers-while-importing-multiple-txt/m-p/843251#M101701</link>
      <description>&lt;P&gt;As you have not provided example file, I assume that the "file" I copy pasted is what you have&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1740074772508.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73228i15902B3E4063FA9E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1740074772508.png" alt="jthi_0-1740074772508.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You should be able to ignore headers by just utilizing settings, for footers, I think you will have to remove them afterwards&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Multiple File Import(
	&amp;lt;&amp;lt;Set Folder("$DOWNLOADS\843237\"),
	&amp;lt;&amp;lt;Set Add File Name Column(1),
	&amp;lt;&amp;lt;Set Import Mode("CSVData"),
	&amp;lt;&amp;lt;Set Charset("Best Guess"),
	&amp;lt;&amp;lt;Set Stack Mode("Stack Similar"),
	&amp;lt;&amp;lt;Set CSV Has Headers(1),
	&amp;lt;&amp;lt;Set CSV Allow Numeric(1),
	&amp;lt;&amp;lt;Set CSV First Header Line(3),
	&amp;lt;&amp;lt;Set CSV Number Of Header Lines(1),
	&amp;lt;&amp;lt;Set CSV First Data Line(4),
	&amp;lt;&amp;lt;Set CSV EOF Comma(0),
	&amp;lt;&amp;lt;Set CSV EOF Tab(0),
	&amp;lt;&amp;lt;Set CSV EOF Space(0),
	&amp;lt;&amp;lt;Set CSV EOF Spaces(1),
	&amp;lt;&amp;lt;Set CSV EOF Other(""),
	&amp;lt;&amp;lt;Set CSV EOL CRLF(1),
	&amp;lt;&amp;lt;Set CSV EOL CR(1),
	&amp;lt;&amp;lt;Set CSV EOL LF(1),
	&amp;lt;&amp;lt;Set CSV EOL Semicolon(0),
	&amp;lt;&amp;lt;Set CSV EOL Other(""),
	&amp;lt;&amp;lt;Set CSV Quote("\!""),
	&amp;lt;&amp;lt;Set CSV Escape(""),

) &amp;lt;&amp;lt; Import Data;

dt = dt[1];

rows_to_delete = dt &amp;lt;&amp;lt; Get Rows Where(Starts With(:Parameter, "! "));
dt &amp;lt;&amp;lt; Delete Rows(rows_to_delete);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1740074845363.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73229i1FE691D518FD73E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1740074845363.png" alt="jthi_1-1740074845363.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 18:07:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-exclude-headers-and-footers-while-importing-multiple-txt/m-p/843251#M101701</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-02-20T18:07:30Z</dc:date>
    </item>
  </channel>
</rss>

