Should be used when display language setting is GERMAN and the import has brought in numeric data as character due to the decimal point. This script converts values with decimal seperator to comma seperator and changes the data type to continuous.
THIS SCRIPT WILL NOT WORK FOR ENGLISH LANGUAGE SETTING
You will find the script to convert in the other direction commented or under this script in file exchange ("Substitute_Comma2Decimal.jsl")
There are three files:
You might change the script to fullfill your language needs. However it should work also for FRENCH and other languages supporting comma separated floating point numbers.
Awesome. exactly what I was looking for :) Nice and elegant script.
Thanks, glad it is helpful :)
Update: By the way, as of JMP 15 the RECODE functionality has a new formula generation functionality which is not using a match statement. This allows to use some code like this as base for the transition:
Recode( :Column 6, {Substitute( _rcNow, ".", "," ), Num( _rcNow )} )
or:
Num( Recode( :Column 6, {Substitute( _rcNow, ".", "," )} ) )
Finally you still have to set the modeling type to continuous.
Just if you were not aware of it :)