String containing paragraph characters returns unexpected result in STR_SPLIT function
search cancel

String containing paragraph characters returns unexpected result in STR_SPLIT function

book

Article ID: 387984

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

The STR_SPLIT function produces additional columns when the treated string contains sequential paragraph ('§') characters.

For instance, using the following script:

:DEFINE &STRINGS#, string, 5
:SET &STRING# = "123_456§§§§789"
:FILL &STRINGS#[] = STR_SPLIT(&STRING#,"_")

The expected result might be:

123
456§§§§789

but the actual result is:

123
456
§789

where the string is split on the underscore ('_') but also on '§§§', the fourth '§' is then considered a valid character again.

Cause

Resolution

This is by design and '§§§' cannot be used or should be temporarily replaced.

The same may happen in other UC4 script functions.