<?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: Import with decimal separator comma in JMP 16 - Custom Locale Settings not working in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Import-with-decimal-separator-comma-in-JMP-16-Custom-Locale/m-p/426293#M67613</link>
    <description>&lt;P&gt;Seems that I found a bug - yes, recode or scripting can resolve it, but I wanted to try it in a clever way...&lt;/P&gt;</description>
    <pubDate>Thu, 14 Oct 2021 08:48:14 GMT</pubDate>
    <dc:creator>Feli</dc:creator>
    <dc:date>2021-10-14T08:48:14Z</dc:date>
    <item>
      <title>Import with decimal separator comma in JMP 16 - Custom Locale Settings not working</title>
      <link>https://community.jmp.com/t5/Discussions/Import-with-decimal-separator-comma-in-JMP-16-Custom-Locale/m-p/411484#M66102</link>
      <description>&lt;P&gt;I have to import some text files where comma (,) is used as decimal separator. I don't want to change my settings from English/Use JMP Settings since otherwise my other imports and scripts stop working, so I thought I'd try the new feature in JMP 16.1 (&lt;A href="https://community.jmp.com/t5/JMP-Wish-List/JSL-command-to-Get-and-Set-the-Display-Language-in-JMP/idi-p/241372" target="_blank" rel="noopener"&gt;JSL command to Get and Set the Display Language in JMP&lt;/A&gt;&amp;nbsp;) that&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6878"&gt;@Jeff_Perkinson&lt;/a&gt;&amp;nbsp;mentioned.&lt;/P&gt;&lt;P&gt;So off I go building my little script :&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Get Preferences( Custom Locale Settings );
    Preferences( Custom Locale Settings( Decimal Separator(",") ) );
Open(
	"myfile",
	columns(
		...
	),
	Import Settings(
		End Of Line( CRLF, CR, LF ),
		End Of Field( Other( "0x3b" ), CSV( 0 ) ),
		Strip Quotes( 1 ),
		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( 0 ),
		Column Names Start( 1 ),
		Data Starts( 1 ),
		Lines To Read( "All" ),
		Year Rule( "20xx" )
	)
);

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;But nothing happens- the comma doesn't get recognized as decimal separator and the numeric columns are imported as a character column, which is exactly not what I wanted.&lt;/P&gt;&lt;P&gt;So any help? Is there something wrong in my import settings (I didn't change any standard preferences except that I use semicolon as end of field separator) or did I find a bug?&lt;/P&gt;&lt;P&gt;My JMP version is 16.1 and I use the Windows version, if that helps.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:55:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-with-decimal-separator-comma-in-JMP-16-Custom-Locale/m-p/411484#M66102</guid>
      <dc:creator>Feli</dc:creator>
      <dc:date>2023-06-09T19:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Import with decimal separator comma in JMP 16 - Custom Locale Settings not working</title>
      <link>https://community.jmp.com/t5/Discussions/Import-with-decimal-separator-comma-in-JMP-16-Custom-Locale/m-p/411561#M66112</link>
      <description>&lt;P&gt;This could be a bug (you could contact &lt;A href="mailto:support@jmp.com" target="_blank"&gt;support@jmp.com&lt;/A&gt;), but could you script your way out of this temporarily? You could for example replace the "," with "." in specific columns and then attempt to convert the columns to Numeric.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 14:34:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-with-decimal-separator-comma-in-JMP-16-Custom-Locale/m-p/411561#M66112</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-08-20T14:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Import with decimal separator comma in JMP 16 - Custom Locale Settings not working</title>
      <link>https://community.jmp.com/t5/Discussions/Import-with-decimal-separator-comma-in-JMP-16-Custom-Locale/m-p/412622#M66219</link>
      <description>&lt;P&gt;Hello Feli&lt;/P&gt;&lt;P&gt;I think the fasted way to solve your problem is to use the recode function. Go to the column heading, right click and activate "recode", Then go to the red triangle "convert to Character" again go to the red triangle "replace string" and change the string into what you want. Afterwards you can change the column charactersitic back numerical.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this is of help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lu&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 18:31:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-with-decimal-separator-comma-in-JMP-16-Custom-Locale/m-p/412622#M66219</guid>
      <dc:creator>Lu</dc:creator>
      <dc:date>2021-08-25T18:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Import with decimal separator comma in JMP 16 - Custom Locale Settings not working</title>
      <link>https://community.jmp.com/t5/Discussions/Import-with-decimal-separator-comma-in-JMP-16-Custom-Locale/m-p/426293#M67613</link>
      <description>&lt;P&gt;Seems that I found a bug - yes, recode or scripting can resolve it, but I wanted to try it in a clever way...&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 08:48:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-with-decimal-separator-comma-in-JMP-16-Custom-Locale/m-p/426293#M67613</guid>
      <dc:creator>Feli</dc:creator>
      <dc:date>2021-10-14T08:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Import with decimal separator comma in JMP 16 - Custom Locale Settings not working</title>
      <link>https://community.jmp.com/t5/Discussions/Import-with-decimal-separator-comma-in-JMP-16-Custom-Locale/m-p/428895#M67836</link>
      <description>&lt;P&gt;After talking with JMP support, we found this solution:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;Preferences( Custom Locale Settings( Decimal Separator(",") ) );
Open(
    "/C:/Temp/test_import.csv",
    columns(
        New Column("Number", Numeric, "Continuous", Format("Best", 12)),
        New Column("Number2", Numeric, "Continuous")
    ),
    Import Settings(
        End Of Line(CRLF, CR, LF),
        End Of Field(Other(";"), CSV(0)),
        Strip Quotes(1),
        Use Apostrophe as Quotation Mark(0),
        Use Regional Settings(1),
        Scan Whole File(1),
        Treat empty columns as numeric(0),
        CompressNumericColumns(0),
        CompressCharacterColumns(0),
        CompressAllowListCheck(0),
        Labels(1),
        Column Names Start(1),
        Data Starts(2),
        Lines To Read("All"),
        Year Rule("20xx")
    )
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The key is to set&amp;nbsp;Use Regional Settings(1) and set the columns to numeric during import.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 06:57:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Import-with-decimal-separator-comma-in-JMP-16-Custom-Locale/m-p/428895#M67836</guid>
      <dc:creator>Feli</dc:creator>
      <dc:date>2021-10-21T06:57:14Z</dc:date>
    </item>
  </channel>
</rss>

