<?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: Keeping comma containing values from being split into columns during CSV import in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Keeping-comma-containing-values-from-being-split-into-columns/m-p/46080#M26272</link>
    <description>&lt;P&gt;Try&amp;nbsp;with&lt;/P&gt;
&lt;PRE class=" language-jsl"&gt;&lt;CODE class="  language-jsl"&gt;Strip Quotes&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;1&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2017 15:42:23 GMT</pubDate>
    <dc:creator>ms</dc:creator>
    <dc:date>2017-10-18T15:42:23Z</dc:date>
    <item>
      <title>Keeping comma containing values from being split into columns during CSV import</title>
      <link>https://community.jmp.com/t5/Discussions/Keeping-comma-containing-values-from-being-split-into-columns/m-p/46077#M26270</link>
      <description>&lt;P&gt;Short version: the CSV files I am working which occassionally contain text strings which include a comma.&lt;/P&gt;&lt;P&gt;The JSL I have written to open this table very neatly splits the string at the comma and send the part after the comma into the next data column - exactly where it doesn't go.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Excel will get it right when opening this file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to get JMP / JSL to treat this one comma as just a character and not a delimiter?&lt;/P&gt;&lt;P&gt;Or put another way: Is there a way to adjust the script below so that commas inside quotes will be ignored as potential delimiters?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Particulars:&lt;/P&gt;&lt;P&gt;JMP 13.2.1, 64-bit running on Windows 7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Excerpts of the csv file:&lt;/P&gt;&lt;P&gt;Opening it as text in Notepad, the offending row contains:&lt;/P&gt;&lt;P&gt;...11:00,Skipped,"Light thrown away, they have another light they will put up",,,,&lt;/P&gt;&lt;P&gt;Note: The double quotes around the test entry are the only ones in the data as best as I can tell.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What Excel shows and I am hoping to get out of JMP:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;column 11&lt;/TD&gt;&lt;TD&gt;column 12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Comment&lt;/TD&gt;&lt;TD&gt;Pest Findings&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Light thrown away, they have another light they will put up&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What JMP is giving me instead:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;column 11&lt;/TD&gt;&lt;TD&gt;column 12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Comment&lt;/TD&gt;&lt;TD&gt;Pest Findings&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Light thrown away&lt;/TD&gt;&lt;TD&gt;they have another light they will put up&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column 12 / Pest findings would normally say something about insects found, mice, etc. and should NOT be showing the back half of the comment. It should be blank on this row.&lt;/P&gt;&lt;P&gt;The piece of script I am using to open the table is as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	Open(
		qfull,
		columns(
			Column( "Company", Character, "Nominal" ),
			Column( "Address", Character, "Nominal" ),
			Column( "City", Character, "Nominal" ),
			Column( "State", Character, "Nominal" ),
			Column( "Zip", Character, "Nominal" ),
			Column( "Area", Character, "Nominal" ),
			Column( "Device Type", Character, "Nominal" ),
			Column( "Device Name", Character, "Nominal" ),
			Column( "Date", Numeric, Informat( "m/d/y h:m" ), "Continuous", Format( "ddmonyyyy", 19 )),
			Column( "Date", Character, "Nominal"),
			Column( "Activity", Character, "Nominal" ),
			Column( "Comment", Character, "Nominal" ),
			Column( "Pest Findings", Character, "Nominal" ),
			Column( "Questions", Character, "Nominal" ),
			Column( "Materials", Character, "Nominal" )
		),
		Import Settings(
			End Of Line( CRLF, CR, LF ),
			End Of Field( Comma, CSV( 1 ) ),
			Strip Quotes( 0 ),
			Use Apostrophe as Quotation Mark( 0 ),
			Use Regional Settings( 0 ),
			Scan Whole File( 1 ),
			Treat empty columns as numeric( 0 ),
			CompressNumericColumns( 0 ),
			CompressCharacterColumns( 0 ),
			CompressAllowListCheck( 0 ),
			Labels( 1 ),
			Column Names Start( 7 ),
			Data Starts( 8 ),
			Lines To Read( "All" ),
			Year Rule( "20xx" )
		)
	);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is there a way to adjust this script so that commas inside quotes will be ignored as potential delimiters?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 15:08:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Keeping-comma-containing-values-from-being-split-into-columns/m-p/46077#M26270</guid>
      <dc:creator>ckerr</dc:creator>
      <dc:date>2017-10-18T15:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping comma containing values from being split into columns during CSV import</title>
      <link>https://community.jmp.com/t5/Discussions/Keeping-comma-containing-values-from-being-split-into-columns/m-p/46080#M26272</link>
      <description>&lt;P&gt;Try&amp;nbsp;with&lt;/P&gt;
&lt;PRE class=" language-jsl"&gt;&lt;CODE class="  language-jsl"&gt;Strip Quotes&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;1&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 15:42:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Keeping-comma-containing-values-from-being-split-into-columns/m-p/46080#M26272</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2017-10-18T15:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping comma containing values from being split into columns during CSV import</title>
      <link>https://community.jmp.com/t5/Discussions/Keeping-comma-containing-values-from-being-split-into-columns/m-p/46081#M26273</link>
      <description>&lt;P&gt;That's fixed it!&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 15:57:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Keeping-comma-containing-values-from-being-split-into-columns/m-p/46081#M26273</guid>
      <dc:creator>ckerr</dc:creator>
      <dc:date>2017-10-18T15:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping comma containing values from being split into columns during CSV import</title>
      <link>https://community.jmp.com/t5/Discussions/Keeping-comma-containing-values-from-being-split-into-columns/m-p/50503#M28707</link>
      <description>&lt;P&gt;I have a similar problem but not in a scripted context. I'm opening a Triple-S file linked to a CSV data file. Open-ended data is properly quoted per CSV standards, but JMP is still interpreting the commas inside the quoted strings as field separators.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;123456,1,"Lorem ipsum dolor sit amet, consectetuer...",3,5&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Gets parsed into 6 columns instead of the correct 5 columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've played with the various import settings for text files under preferences, but to no effect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts would be appreciated. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 14:13:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Keeping-comma-containing-values-from-being-split-into-columns/m-p/50503#M28707</guid>
      <dc:creator>wingman131</dc:creator>
      <dc:date>2018-01-31T14:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping comma containing values from being split into columns during CSV import</title>
      <link>https://community.jmp.com/t5/Discussions/Keeping-comma-containing-values-from-being-split-into-columns/m-p/50530#M28723</link>
      <description>&lt;P&gt;This is a bug, JMP should not break apart the quoted portion of the value. Unfortunately, it will be JMP 14.1 before this is fixed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian Corcoran&lt;/P&gt;
&lt;P&gt;JMP Development&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 18:45:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Keeping-comma-containing-values-from-being-split-into-columns/m-p/50530#M28723</guid>
      <dc:creator>briancorcoran</dc:creator>
      <dc:date>2018-01-31T18:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping comma containing values from being split into columns during CSV import</title>
      <link>https://community.jmp.com/t5/Discussions/Keeping-comma-containing-values-from-being-split-into-columns/m-p/50531#M28724</link>
      <description>OK. Thanks for the response.</description>
      <pubDate>Wed, 31 Jan 2018 18:53:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Keeping-comma-containing-values-from-being-split-into-columns/m-p/50531#M28724</guid>
      <dc:creator>wingman131</dc:creator>
      <dc:date>2018-01-31T18:53:52Z</dc:date>
    </item>
  </channel>
</rss>

