WhereScape RED enables you to create Custom Data Type Mapping Sets. This gives you the ability to automatically change the data type of any column or to add column transformations, when dragging and dropping new Load tables.
The examples in this topic demonstrate how Custom Data Type Mapping Sets can be configured, using the following variables:

%length

In the example below, when converting varchar in a standard file to SQL Server format, we follow the following steps in the given order:

%scale

In the example below, when converting a decimal in SQL Server to SQL Server format,  the following steps are done in the given order:

The Scale> is the number of digits to the right of the decimal point in a number.

%table_name and %column_name

In the example below, the following transformations are used to handle NULL for different lengths of varchars:

%format

In the example below, the following transformations are used to convert a certain character field to a date:

%prompt

In the example below, %prompt is used to help the user define a mapping for an unknown data type that is not already mapped in the previous mapping rules.This variable must be used with a custom Data Type mapping set, as described in the following steps: