<?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 Skip charater to import column header in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-Skip-charater-to-import-column-header/m-p/594125#M79799</link>
    <description>&lt;P&gt;Hi &lt;A href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026" target="_blank"&gt;@julian&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much. It's a working solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2023 15:21:57 GMT</pubDate>
    <dc:creator>mlo1</dc:creator>
    <dc:date>2023-01-27T15:21:57Z</dc:date>
    <item>
      <title>How to Skip charater to import column header</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Skip-charater-to-import-column-header/m-p/593929#M79781</link>
      <description>&lt;P&gt;I am having data in a txt file .&lt;/P&gt;&lt;P&gt;What is the best option to read in the data into a JMP table with skipping the # character to get the column names fitting to the data columns?&lt;/P&gt;&lt;P&gt;Any recommendations ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mlo1_0-1674806513024.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49520i57CFA1FC5744792B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mlo1_0-1674806513024.png" alt="mlo1_0-1674806513024.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:40:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Skip-charater-to-import-column-header/m-p/593929#M79781</guid>
      <dc:creator>mlo1</dc:creator>
      <dc:date>2023-06-08T16:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to Skip charater to import column header</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Skip-charater-to-import-column-header/m-p/593937#M79783</link>
      <description>&lt;P&gt;Could you share the text file (or mock-up of it)? Makes it much easier to provide suggestions. First idea that comes to my mind is to drop some characters from the data with the help of JSL&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 09:53:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Skip-charater-to-import-column-header/m-p/593937#M79783</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-01-27T09:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to Skip charater to import column header</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Skip-charater-to-import-column-header/m-p/594029#M79791</link>
      <description>&lt;P&gt;Thank you for the reply I enclosed a sample file.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 13:56:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Skip-charater-to-import-column-header/m-p/594029#M79791</guid>
      <dc:creator>mlo1</dc:creator>
      <dc:date>2023-01-27T13:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Skip charater to import column header</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Skip-charater-to-import-column-header/m-p/594060#M79794</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8417"&gt;@mlo1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know of a non-scripting way during import to ignore a character like that. Preprocessing the file to remove the # is probably the most direct approach if you can do it. I've been in a situation like this before where editing the original file wasn't possible/preferable, and so another approach would be to fix the names after the import. The following shifts all the column names left and removes the blank last column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();

//get all the column names
colNames = dt &amp;lt;&amp;lt; Get Column Names( String );

//remove the last column with no data
dt &amp;lt;&amp;lt; Delete Columns( N Cols( dt ) );

//loop to replace names starting at the end of the table
For( c = N Cols( dt ), c &amp;gt; 0, c--,
	Column( c ) &amp;lt;&amp;lt; Set Name( colNames[c+1] )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 14:20:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Skip-charater-to-import-column-header/m-p/594060#M79794</guid>
      <dc:creator>jules</dc:creator>
      <dc:date>2023-01-27T14:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to Skip charater to import column header</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Skip-charater-to-import-column-header/m-p/594125#M79799</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026" target="_blank"&gt;@julian&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much. It's a working solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 15:21:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Skip-charater-to-import-column-header/m-p/594125#M79799</guid>
      <dc:creator>mlo1</dc:creator>
      <dc:date>2023-01-27T15:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Skip charater to import column header</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Skip-charater-to-import-column-header/m-p/594145#M79802</link>
      <description>&lt;P&gt;Here is other option which relies on removing few extra characters and then "opening the file" again by using Char To Blob()&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

txt = Load Text File("$DOWNLOADS/JMPTest.txt");
txt = Substr(txt, 3, - 1); // drop first three characters
dt = Open(
	Char To Blob(txt),
	End Of Field(Spaces, Space, CSV(0))
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Jan 2023 15:37:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Skip-charater-to-import-column-header/m-p/594145#M79802</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-01-27T15:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Skip charater to import column header</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Skip-charater-to-import-column-header/m-p/594257#M79811</link>
      <description>&lt;P&gt;If you don't want to script this, it's pretty easy to deal with moving the column names after the table is opened.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Select columns 2 through n (i.e., the last column in the table) in the columns list on the left side of the data table, then Ctrl-C or Edit-&amp;gt;Copy and you'll copy the column names to the clipboard.&lt;/LI&gt;
&lt;LI&gt;Then, delete the last column of the data table, otherwise you'll end up with a duplicate column name.&lt;/LI&gt;
&lt;LI&gt;Finally, select all the columns the columns list and Ctrl-V or Edit-&amp;gt;Paste and you'll paste the column names you just copied.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CopyPasteColumnNames.gif" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49550i44230355C1A5824F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CopyPasteColumnNames.gif" alt="CopyPasteColumnNames.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the selection of the columns in the columns list on the left is the important bit. That puts the keyboard focus in that list so that Copy and Paste get the column names and not the data from the data table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 18:52:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Skip-charater-to-import-column-header/m-p/594257#M79811</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2023-01-27T18:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to Skip charater to import column header</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Skip-charater-to-import-column-header/m-p/595345#M79910</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6878"&gt;@Jeff_Perkinson&lt;/a&gt;&amp;nbsp;&amp;nbsp;'s approach is very elegant ...&lt;BR /&gt;&lt;BR /&gt;if you are interested in more such easter eggs in Jmp, you can have a look at this list:&lt;BR /&gt;&lt;LI-MESSAGE title="CTRL/Alt/Shift + click/select/double click/right click" uid="570994" url="https://community.jmp.com/t5/Discussions/CTRL-Alt-Shift-click-select-double-click-right-click/m-p/570994#U570994" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I guess there are hundreds more - just waiting till some user finds them :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 19:49:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Skip-charater-to-import-column-header/m-p/595345#M79910</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-27T19:49:27Z</dc:date>
    </item>
  </channel>
</rss>

