[DUAS][Windows] How to work with Bat call with uxexechidden
search cancel

[DUAS][Windows] How to work with Bat call with uxexechidden

book

Article ID: 204837

calendar_today

Updated On:

Products

CA Automic Dollar Universe

Issue/Introduction

When a BAT script is called using an uxexechidden function, the default Windows ERRORLEVEL and resexe work differently.

When a BAT script is called directly from an Uproc, then $U is looking for the value of resexe to define the job status (Completed or Aborted).
When uxexechidden is called, $U is waiting for a return code instead of resexe.

 

 

Environment

Release : 6.10

Component : DOLLAR UNIVERSE

Cause

uxexechidden is not considered as a BAT script but a command call with all the data as arguments.

Resolution

Set 'exit $?' or any 'exit <value>' in your bat call to get a prooper return code in $U.
Please note that this "exit" should never be done in a bat called directly in $U (only with uxexec)