Change the Data Type of some columns.

Parameters:

Parameters:

Parameters:

Parameters:

Parameters:
Use the ChangeDataType action to convert columns from one data-type to another.
You can also use the ChangeDataType action to check if a column really contains floating-point numbers. This “sanity check” can potentially detect and prevent difficulties when manipulating tables of doubtful origin.
For example, to CHECK & convert the column A, B and C to floating-point numbers, we’ll have:

We decided to completely abort the data transformation if some non-numbers are found inside the column A, B and C. For example, if the column A contains “0,5”, ETL will abort the execution of the data transformation pipeline.
One very common pitfall when importing columns with numbers inside ETL is that: In some countries the decimal separator is the dot (“.”) and in some other it’s the comma (“,”). By default, ETL is using the dot as decimal separator (i.e. ETL uses the English notation). Inside the ChangeDataType action, you can change the Decimal Separator here: . The third option (that is named “use system locale”) is special: When using this option, ETL uses the decimal separator that is globally defined inside the MSWindows Operating System (inside the “format” tab of the “Region and Language” option found inside the MSWindows “control panel”). This means that ETL will dynamically change, at run-time, the decimal separator to always use the globally defined decimal separator from MSWindows.
The same importation difficulties that appeared for numbers also appear when importing dates and times. Each country has a different way of writing dates (and times). One again, you can use the “system locale” settings (more precisely, use one of the six “System” options: ) to dynamically change, at run-time, the importation settings to reflect the Date & Time settings globally defined inside MSWindows:

Inside ETL, there are basically two different notations to display floating-point numbers:
Here are some examples:

The “shortest” notation is noted (%g). It’s based on either the standard (%f) or the scientific (%e) notation. The “shortest” notation is the more “compact” of the 2 basic notations (standard or scientific). Furthermore, trailing zeros are truncated, and the decimal point appears only if one or more digits follow it.
For the (%.16g): The scientific notation is used only when the exponent of the value is less than –4 or greater than 16.
For the (%g): The scientific notation is used only when the exponent of the value is less than –4 or greater than 6.
To select a number notation follow these guidelines:
If you want to use other notations inside ETL, you can manually edit the .age files with a text editor and write the requested notation in it.
If you want more information about the different notations (%g,%e,%f) and the different precisions (%.16g or %5.3f), please refer to the following webpages:
About printf:
http://msdn.microsoft.com/en-us/library/wc7014hz(v=vs.90).aspx
About notations (%g,%e,%f):
http://msdn.microsoft.com/en-us/library/hf4y5e3w(v=vs.90).aspx
About precision:
http://msdn.microsoft.com/en-us/library/0ecbz014(v=vs.90).aspx
On the second input pin (pin 1) of the ChangeDataType action, you can connect a small table with 2 columns:
