How to change a variable value or its type within a Task
search cancel

How to change a variable value or its type within a Task

book

Article ID: 226176

calendar_today

Updated On:

Products

CA Automic Dollar Universe

Issue/Introduction

We would like to change the Task variables values, but I cannot change the variable type directly with the error below when launching "uxupd tsk ... launchvar add":

Environment

Release : 5.x and superior

Component : DOLLAR UNIVERSE

Resolution

Normal behavior, if the Uproc's Variable Type changes, the variable needs to be removed from the Task first and then added again.

The command uxupd tsk does not allow to change the type of a variable, it's inherited from the Uproc variable

Documentation for uxupd upr here

Documentation for uxupd tsk here

Examples:

  • For uprocs:

uxupd UPR UPR=uproc [VUPR=version] LAUNCHVAR add VARNAME=variable [VTYPE=D|Q|P|T] VFORMAT=format [VALMIN=value] [VALMAX=value] VVALUE=value

uxupd UPR UPR=uproc [VUPR=version] LAUNCHVAR dlt VARNAME=variable

  • For tasks:

uxupd TSK UPR=D_LOAD_FIL MU=HEADQUART LAUNCHVAR add VARNAME=VARTXT VVALUE=XY_VARTXT_VALTSK

uxupd TSK UPR=D_LOAD_FIL MU=HEADQUART LAUNCHVAR dlt VARNAME=VARTXT