ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.
STR_SPLIT returns wrong values
book
Article ID: 84516
calendar_today
Updated On:
Products
CA Automic Workload Automation - Automation Engine
Issue/Introduction
Error Message : N/A
Activation Report shows wrong values after script function, STR_SPLIT.
Investigation Execute debug options show:
U00020404 Script line -> ':DEFINE &x_split_target#, string, 30' U00020404 Script line -> ':S &x_target# = STR_SUB(&$Name#, "&c_SchedulerPrefix#[email protected]", "")' U00020405 Variable modification -> 'x_target#'='[email protected]_TEST.SCRI|' U00020404 Script line -> ':FILL &x_split_target#[] = STR_SPLIT(&x_target#, "$")' U00020405 Variable modification -> 'x_split_target#[00001]'='OPD§§§ST_A§§§_TEST.SCRITS§§§LOGOG 532 PAGES IN 0.051 SECONDS (81.351 MB/SEC).1.OG_170714130021.BCK' WITH BLOCKSIZE=4096, INIT, NOUNLOAD, FORMAT, COMPRESSION, NAME='UC4_DB_DEV LOGSAVE'GSAVE'ODEC-1.6.JAR;./LIB/COMMONS-LOGGING-1.0.4.JAR' U00020405 Variable modification -> 'x_split_target#[00002]'='ST_A§§§_TEST.SCRITS§§§LOGOG 532 PAGES IN 0.051 SECONDS (81.351 MB/SEC).1.OG_170714130021.BCK' WITH BLOCKSIZE=4096, INIT, NOUNLOAD, FORMAT, COMPRESSION, NAME='UC4_DB_DEV LOGSAVE'GSAVE'ODEC-1.6.JAR;./LIB/COMMONS-LOGGING-1.0.4.JAR;./LIB'
Cause
Cause type: Defect Root Cause: Activation report for variable changes show wrong values for variables set with script function, STR_SPLIT. The length of the values is not correct and wrong characters are shown at the end of the values