Combining PUT_ATT and GET_VAR for attribute UNIX_SHELL fails

book

Article ID: 84809

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine AUTOMIC WORKLOAD AUTOMATION

Issue/Introduction

Error Message :
N/A

Combining PUT_ATT and GET_VAR for attribute UNIX_SHELL does not work.

Attribute UNIX_SHELL of a UNIX-JOBS is set in the Pre-Process, using GET_VAR:

<Please see attached file for image>

0EM0N000001hlQM.png

In this case the UNIX_SHELL is set incorrectly. The process contains only the command

echo $SHELL

to see which one was used. The report shows:

<Please see attached file for image>

0EM0N000001hlQR.png

If the value -ksh is supplied directly, without GET_ATT, it works:

<Please see attached file for image>

0EM0N000001hlQW.png

<Please see attached file for image>

0EM0N000001hlQb.png

Cause

Cause type:
Defect
Root Cause: PUT_ATT UNIX_SHELL in combination with an inline GET_VAR isn't working. The wrong value is being used for PUT_ATT. The workaround is to save the value from GET_VAR in a variable and use the variable for PUT_ATT.

Environment

OS Version: N/A

Resolution

Update to a fix version listed below or a newer version if available.

Fix Status: In Progress

Fix Version(s):
Automation Engine 12.2.0 - Planned release date: 2018-06-19
Automation Engine 12.1.1 - Available
Automation Engine 12.0.4 - Available
Automation Engine 11.2.7 - Available

Additional Information

Workaround :
Directly supply the value for the UNIX_SHELL.

Attachments

1558704572527000084809_sktwi1f5rjvs16ln2.png get_app
1558704570480000084809_sktwi1f5rjvs16ln1.png get_app
1558704568708000084809_sktwi1f5rjvs16ln0.png get_app
1558704566649000084809_sktwi1f5rjvs16lmz.png get_app