<?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: JMP csv import automatically converting hex to dec in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-csv-import-automatically-converting-hex-to-dec/m-p/240945#M47594</link>
    <description>&lt;P&gt;Tried the Data (Using Preview) option and indeed that one computer showed up as Number.&amp;nbsp; That computer is using JMP13 -- is there a dependence to JMP version on how JMP interprets data types differently during csv text import?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For now, I might add lines in script to force the data type to Character every time a user imports, but this will have the penalty of performance (run time).&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2020 12:53:25 GMT</pubDate>
    <dc:creator>ylee</dc:creator>
    <dc:date>2020-01-13T12:53:25Z</dc:date>
    <item>
      <title>JMP csv import automatically converting hex to dec</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-csv-import-automatically-converting-hex-to-dec/m-p/240718#M47567</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a csv file with one of the columns containing data such as 0x62, 0x68, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When importing the csv into JMP using JSL open(infile), it is found that JMP automatically converts the column into a Numeric datatype, changing 0x62 to 98 (decimal) in the process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Manually importing the csv not using script, the same issue (auto-converts).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It only happened to one of the computers, other computers did not auto-convert.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Text import settings are the same between the computer that auto-converts, vs. those that don't.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate if there's any advice on what to look into to prevent JMP from auto converting?&amp;nbsp; And if there's a script line that could be added to ensure all computer systems will be pre-conditioned to the same settings prior to text import?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&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="ylee_0-1578648099023.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20910i3F6C04A2FD7AAFA1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ylee_0-1578648099023.png" alt="ylee_0-1578648099023.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 09:22:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-csv-import-automatically-converting-hex-to-dec/m-p/240718#M47567</guid>
      <dc:creator>ylee</dc:creator>
      <dc:date>2020-01-10T09:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: JMP csv import automatically converting hex to dec</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-csv-import-automatically-converting-hex-to-dec/m-p/240732#M47568</link>
      <description>&lt;P&gt;One the one computer that is doing the auto convert, I would suggest that when selecting the file for input, that you specify the "Data (Using Preview)".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="preview1.PNG" style="width: 494px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20911i6B7F118B1F747BE4/image-size/large?v=v2&amp;amp;px=999" role="button" title="preview1.PNG" alt="preview1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can then specify that the Hex column not be interpreted as being numeric, but rather to keep it as a character.&amp;nbsp; In the preview window below, I have chosen to keep the Age column as character.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="preview2.PNG" style="width: 526px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20912i1A07FA2C0ADEBEAF/image-size/large?v=v2&amp;amp;px=999" role="button" title="preview2.PNG" alt="preview2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Additionally, once you have read in the .csv file once, you can go to the Source entry for the table, and Edit it and save the JSL code that used to read in the file.&amp;nbsp; You will see in the JSL how JMP sets the column to be character.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Preview3.PNG" style="width: 746px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20913i2E2667C45CECB180/image-size/large?v=v2&amp;amp;px=999" role="button" title="Preview3.PNG" alt="Preview3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 10:26:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-csv-import-automatically-converting-hex-to-dec/m-p/240732#M47568</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-01-10T10:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: JMP csv import automatically converting hex to dec</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-csv-import-automatically-converting-hex-to-dec/m-p/240740#M47570</link>
      <description>&lt;P&gt;Using Multiple File Import might be another work-around in JMP 14 or later. MFI expects a directory and a filename pattern, but it is easy enough to make that pattern be a complete file name.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 12:18:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-csv-import-automatically-converting-hex-to-dec/m-p/240740#M47570</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-01-10T12:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: JMP csv import automatically converting hex to dec</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-csv-import-automatically-converting-hex-to-dec/m-p/240945#M47594</link>
      <description>&lt;P&gt;Tried the Data (Using Preview) option and indeed that one computer showed up as Number.&amp;nbsp; That computer is using JMP13 -- is there a dependence to JMP version on how JMP interprets data types differently during csv text import?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For now, I might add lines in script to force the data type to Character every time a user imports, but this will have the penalty of performance (run time).&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 12:53:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-csv-import-automatically-converting-hex-to-dec/m-p/240945#M47594</guid>
      <dc:creator>ylee</dc:creator>
      <dc:date>2020-01-13T12:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: JMP csv import automatically converting hex to dec</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-csv-import-automatically-converting-hex-to-dec/m-p/240947#M47596</link>
      <description>&lt;P&gt;As the releases of JMP come out, there definitely can be changes such as you see.&amp;nbsp; The JMP folks are always trying to improve such things, which at times end up with what looks like inconsistencies, not as improvements.&lt;/P&gt;
&lt;P&gt;What you may want to do, is to modify your code to check for the release of JMP being used, and then only the versions that need the fix will have it's script's efficiency impacted.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 13:50:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-csv-import-automatically-converting-hex-to-dec/m-p/240947#M47596</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-01-13T13:50:11Z</dc:date>
    </item>
  </channel>
</rss>

