Substring - Connect_CDC - connect_cdc_mimix_share - Latest

Connect CDC System Reference Guide

Product type
Software
Portfolio
Integrate
Product family
Connect
Product
Connect > Connect CDC (MIMIX Share)
Version
Latest
Language
English
Product name
Connect CDC
Title
Connect CDC System Reference Guide
Copyright
2024
First publish date
2003
ft:lastEdition
2024-08-20
ft:lastPublication
2024-08-20T21:40:14.000381

Method:   Substring

Function name:   de_substring

Parameter list:   (CHAR ColumnName, INTEGER nFrom,INTEGER nSize)

Return type:   CHAR

What the method does:    Uses position and length references to extract a character substring Return type:   from a source string. You specify three parameters:

  • Source column

  • Starting position

  • Length of the substring to be extracted.

For the source string lakeview, if the starting position is 2 and the substring length is 3, the method returns ake.

In case of errors like a source column that has a null or empty-string value, a starting position greater than the length of the source string, or a substring length less than 1, the target column is assigned a null value.