Uproc reverts to original variable values on rerun

book

Article ID: 225142

calendar_today

Updated On:

Products

CA Automic Dollar Universe

Issue/Introduction

A CL_INT type uproc has several variables used in its script. When the default value of a variable is updated for a rerun the variable value are changed, however if a subsequent rerun of the same Uproc is carried out the updated variable values reverts to its original Uproc value instead of remaining at its current value. 

This happens for the Uproc variable of type password, but also for all normal variable if the are listed after a password variable.

For instance:

A Uproc has 3 variables in the indicated order:

Create a Uproc with 3 variables in the same order as indicated:

Create a Uproc with 3 variables in the same order as indicated:

variable type name value
text var1 val1
password password secret
text var2 val2

CL_INT:
echo %var1%
echo %var2%
echo %var3%

Now, run the Uproc to check the result. 

Then rerun the Uproc changing the values before rerun to:
val1mod
verysecret
val2mod

Everything works, so far.

Now rerun the uproc a second time and observe the values in the Job Log:

val1mod
secret
val2

Cause

This is a bug

Environment

Release : 6.10

Component : DOLLAR UNIVERSE

Resolution

Partial workaround:

Putting the password variable last in the list prevent other variables to be modified.

 

Solution:

This will be fixed in a future version.