Sub String

The information on this page relates to the new upgraded interface of the IConduct platform. To view information about the Classic version of the user interface, follow this link.

 

A very common text manipulation algorithm is the Sub String option. You can use this option to select a specific string of data from an existing string, and set it to a target column. You need to select the column that is the data source, where you want the result to be stored (destination column) and the index and length of the string to copy, that is – from what digit to start copying and what length of data to copy.

 

For example, if the source data is a string consisting of a number + name (e.g. 12Nir, 05Joe), and the string that you actually need is the two-digit number at the start of this source data, then you start your index at "0" (the first data digit) and as the number is only 2 digits long – the length would be defined as "2".

 

The result will be as follows:

 

Source Column Target Column
12Nir 12
05Joe 5

 

The destination column contains only the two-digit number that appears prior to the listed name in the source data column.

 

To configure this manipulate step, follow the instructions below:

 

  1. In the specific Interface work area, press the downward button next to the task and press the ‘+’ (plus sign) button.

Creating a New Step

  1. Select Create manipulation step.
  1. Navigate to the Texts section and select Sub String.

Texts Section

  1. In the Sub String work area, fill in the following fields:

Fields Description

Name of step

Provide a distinctive name for this step.

Filter Expression

Optional. Use this filed to filter data from the source database prior to inserting it into the Schema table.

Sort Expression

Optional. Use this field to sort data from the source database prior to inserting it into the Schema table.

Order of Execution

Enter the order in which this step should be executed.

Audit notes

Leave notes about the step if needed. This field may contain any information, such as the purpose of the step, further actions that must be taken etc. for you to work with the step in the future or to inform team members about your intent. 

Is Active

Activate the switch to engage the scheduler for this step.

Stop interface execution if query failed

Optional. If enabled, the system will stop any data manipulation if the query returns an error.

Save Schema (enabled per interface)

If selected, the schema is created for this step.

Source Column

Select the column where you will retrieve the data source.

Target Column

Select the column where the result will be stored.

Start Index

Define the start position of the string from which the substring will be extracted. The value should be integer.

Length

Define the length (the number of characters) of the string to extract. The value should be integer.

Is Multi Mapping 

Enable to hold the mapping for multiple schema rows. You can indicate the rows in the mappings section that appears after saving the step. 

 

  1. Press the Create step button.