Following Input xml field needs to be substringed for 6 characters and each 6 characters should be splitted and saved in the option field of output.
Input:
<feature>124414500045563879</feature>
output:
<option>124414</option>
<option>500045</option>
<option>563879</option>
Is there any tokenizer function available in IIB ESQL to achieve the above result.
Another solution could be to take the value of feature as bitstream, build a new BLOB message from it, and have it re-parsed using a message definition that describes the tokens in that value. After the re-parsing, you can further process the new logical message.
As far as I know, no there isn't a String Tokenizer function in ESQL.
But you could use the following procedure as base to achieve your goal. This method splits S on Delim into an array in Env (Environment.Split.Array[]) and removes Environment.Split before refilling it.
In your case, you don't need the Delim, you should work with a fixed length in the Substring part.
Source: http://www.mqseries.net/phpBB2/viewtopic.php?p=97845&