EXEC VARA does not pass Values to Child Executable Object

book

Article ID: 85005

calendar_today

Updated On:

Products

AUTOMIC WORKLOAD AUTOMATION

Issue/Introduction

Error Message :

N/A


EXEC VARA does not pass values to the child executable object.

Investigation

The  SCRI should print the values of the parameters defined in the VARA, for example:

 

20160726 14:53:12 U00020206 Variable '&RESULT#' was stored with value ''.
20160726 14:53:12 U00020206 Variable '&VAR2#' was stored with value ''.
20160726 14:53:12 U00020206 Variable '&VAR3#' was stored with value ''.
20160726 14:53:12 U00020408 Variable 1:
20160726 14:53:12 U00020408 Variable 2:
20160726 14:53:12 U00020408 Variable 3:

 
The dynamic variable EXEC can be used as an intermediary, carrying out a readout of return values of executed objects, which may affect the subsequent execution of objects or trigger the execution of objects. As a user, you can store these readouts in the script variables defined in EXEC. EXEC itself has no input parameters.
 
You can use the dynamic Variable object EXEC in order to read and pass on the values of another executable object. In this case, the parameters in the dynamic Variable object EXEC must use the same names as are used in the PromptSet of the executable object that supplies the return codes.


Solution

To pass parameter values from a VARA EXEC object to an EXECUTABLE object the following steps are mandatory.

  1. The name of the variables in the parameter list must be the same in the executable object.

0EMb0000001QQDJ.png



2. To map the values from the VARA EXEC into the EXECUTABLE object you need a separate PROMPTSET object.  Each parameter in the VARA EXEC should be defined as a character field with the same name in the VARA EXEC but without leading ‘&’ (e.g. PARAM2# instead of &PARAM2#).

This PromptSet object must be assigned to the executive object:


0EMb0000001QQDx.png

Test Case:

  • VARA.EXEC
  • PROMPTSET
  • EXECUTABLE object


0EMb0000001QQE2.png

Preview: Pressing this button will show a preview of the result values stored or transferred.

 
Check the statistics:

<Please see attached file for image>

0EMb0000001QQEH.png

And the report:

<Please see attached file for image>

0EMb0000001QQER.png  

Cause

Cause type:
Other
Root Cause: The section of the documentation describing EXEC VARA objects will be enhanced to include this information.

Environment

OS Version: N/A

Resolution

Update to a fix version listed below or a newer version if available where the documentation has been updated.

It is not necessary to use a PromptSet with the child executable object.  It is also sufficient to use :READ statements in the pre-process or process tab of the child executable object.

References

Automation Engine v11.2 Documentation:

Automation Engine v12 Documentation:


Fix Status: Released

Fix Version(s):
Component: Documentation

Automation Engine 12.1.0 –Available
Automation Engine 12.0.1 – Available
Automation Engine 11.2.3 – Available
Automation Engine 11.1.4 – Available

Additional Information

Workaround :
N/A

Attachments

1558693374321000085005_sktwi1f5rjvs16m71.png get_app
1558693372607000085005_sktwi1f5rjvs16m70.png get_app
1558693370498000085005_sktwi1f5rjvs16m6z.png get_app
1558693368714000085005_sktwi1f5rjvs16m6y.png get_app
1558693366880000085005_sktwi1f5rjvs16m6x.png get_app
1558693364931000085005_sktwi1f5rjvs16m6w.png get_app
1558693362968000085005_sktwi1f5rjvs16m6v.png get_app