Passing parameters to the "run program" operator
search cancel

Passing parameters to the "run program" operator

book

Article ID: 198793

calendar_today

Updated On:

Products

CA Process Automation Base CA Service Catalog

Issue/Introduction

Within CA Process Automation , the transmitted parameters for a function contain characters with accents (ç, ã, õ, é, ...) and the parameters that the program receives have other strange characters and not those that were sent.

How should I pass the parameters in these cases?

Environment

Component : Process Automation

Cause

The problem is caused by the difference in character code pages between the servers - forcing the correct code page solves this.

Resolution

By adding the line

C:\Windows\System32\chcp 1252

to both the top of the inline script and as a one-line "profile.bat" script on the server that is referenced in the Profile field of the Script Attributes section, this is then working. It is necessary to tell the system to use a character code page that supports these characters. It's necessary to include the full path to the chcp command as this is executed before the path mappings are picked up.