How to code ARGS value with '\' on CA WA ESP Edition?
search cancel

How to code ARGS value with '\' on CA WA ESP Edition?

book

Article ID: 207976

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

We are having an issue with a LINUX script:

LINUX_JOB TEST
USER tst
SCRIPTNAME /opt/scripts/testscripts/test_args.sh      
ARGS 'abc 123 TESTFILE.HDR\(0\)'
....
ENDJOB

The '\' will be doubled by the agent: TESTFILE.HDR\\(0\\)

How to avoid it?

Environment

Release : 12.0

Component : CA ESP WORKLOAD AUTOMATION

Resolution

Need to put the dataset name with \(0\) in double quotes:
"TESTFILE.HDR\(0\)"

So it will be:
LINUX_JOB TEST
USER tst
SCRIPTNAME /opt/scripts/testscripts/test_args.sh      
ARGS 'abc 123 "TESTFILE.HDR\(0\)"'
....
ENDJOB