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.

Replace utility does not replace entries in VARAs

book

Article ID: 88231

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

You want to replace a value in a static VARA. Replace does not do the job:
REPLACE VARA, VARA.UC4#[email protected]_INFO, *, "@@@[email protected]@@", “xxxxxxxx”
REPLACE VARA, VARA.UC4#[email protected]_INFO, *, "@@@[email protected]@@", “xxxxxxxx”
REPLACE VARA, VARA.UC4#[email protected]_INFO, *, "@@@[email protected]@@", “xxxxxxxx”

The Output shows that nothing is done:
12:17:03 20160422/121703.210 - U00021412 Input script:
12:17:03 20160422/121703.211 - U00021411 Line '001': 'REPLACE VARA, VARA.UC4#[email protected]_INFO, *, "@@@[email protected]@@", "xxxxxxxx"'
12:17:03 20160422/121703.211 - U00021411 Line '002': 'REPLACE VARA, VARA.UC4#[email protected]_INFO, *, "@@@[email protected]@@", "xxxxxxxx"'
12:17:03 20160422/121703.211 - U00021411 Line '003': 'REPLACE VARA, VARA.UC4#[email protected]_INFO, *, "@@@[email protected]@@", "xxxxxxxx"'
12:17:03 20160422/121703.211 - U00021413 Replacements:
12:17:14 20160422/121714.916 - U00021407 Program UCYBchng ended normally.

Environment

Release: AUTWAB99000-11.0-Automic Workload Automation-Base Edition
Component:

Resolution

Please use REPLACE_PART in this case:
REPLACE_PART VARA, VARA.UC4#[email protected]_INFO, *, "@@@[email protected]@@", "0.0-TEST"
REPLACE_PART VARA, VARA.UC4#[email protected]_INFO, *, "@@@[email protected]@@", "20.09.2016"
REPLACE_PART VARA, VARA.UC4#[email protected]_INFO, *, "@@@[email protected]@@", "None"