While using :FILL &ARRAY#[] = GET_PUBLISHED_VALUE the values get truncated after 1294
search cancel

While using :FILL &ARRAY#[] = GET_PUBLISHED_VALUE the values get truncated after 1294

book

Article ID: 258180

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine CA Automic One Automation

Issue/Introduction

While using :FILL &ARRAY#[] = GET_PUBLISHED_VALUE the values get truncated after 1294

Run a script which has a count greater than 1294 to publish (example below )

:define &muchnumber#, string, 7000

:set &c# = 1

:while &c# < 1500

:  set &f# = MULT(&c#, 199999)

:  set &muchnumber#[&c#]=&f#

:  set &c# = add(&c# ,1)

:endwhile

 :PRINT +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

:PRINT muchnumber after while loop

:set &L# = LENGTH(&muchnumber#[], SIZE)

:PRINT muchnumber &L#

:PRINT +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 :publish &muchnumber#[]

The job would return U00020408 muchnumber 0000000000001499 post execution as we have set the count to 1500

Now if you try to fill an array with this output using the below script 

:fill &additionalnumbers#[] = get_published_value(&$runid#, "muchnumber#[]")

This returns 1294 and not 1499 - for lower values below 1294 - this returns the correct value as muchnumber#

U00020408 0000000000001294 = ARRAY SIZE

Environment

Release : 12.x

                 21.x

Component: Automation Engine

Functional Area: SCRIPT

Cause

The issue has been confirmed to be a bug by our Dev team

Resolution

Workaround:

Use count below 1294 while performing a similar operation.

Solution:

This will be fixed in a future 21.0 release